WP_Customize_Selective_Refresh::handle_error() – Handles PHP errors triggered during rendering the partials.

You appear to be a bot. Output may be restricted

Description

Handles PHP errors triggered during rendering the partials.

These errors will be relayed back to the client in the Ajax response.

Usage

$true = WP_Customize_Selective_Refresh::handle_error( $errno, $errstr, $errfile, $errline );

Parameters

$errno
( int ) required – Error number.
$errstr
( string ) required – Error string.
$errfile
( string ) optional – Error file.
$errline
( int ) optional – Error line.

Returns

true Always true.

Source

File name: wordpress/wp-includes/customize/class-wp-customize-selective-refresh.php
Lines:

1 to 10 of 10
  public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
    $this->triggered_errors[] = array(
      'partial'      => $this->current_partial_id,
      'error_number' => $errno,
      'error_string' => $errstr,
      'error_file'   => $errfile,
      'error_line'   => $errline,
    );
    return true;
  }
 

 View on GitHub View on Trac