Handles PHP errors triggered during rendering the partials.
These errors will be relayed back to the client in the Ajax response.
(int) (Required) Error number.
(string) (Required) Error string.
(string) (Optional) Error file.
Default value: null
(string) (Optional) Error line.
Default value: null
(true) Always true.
File: wp-includes/customize/class-wp-customize-selective-refresh.php
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; }
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/handle_error