GC_Customize_Selective_Refresh::handle_error()
最后更新于:2021-11-27 08:09:12
GC_Customize_Selective_Refresh::handle_error( int$errno, string$errstr, string$errfile=null, string$errline=null)Handles PHP errors triggered during rendering the partials.
参数
- $errno
-
(int) (Required) Error number.
- $errstr
-
(string) (Required) Error string.
- $errfile
-
(string) (Optional) Error file.
Default value: null
- $errline
-
(string) (Optional) Error line.
Default value: null
响应
(true) Always true.
源文件
文件: gc-includes/customize/class-gc-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;
}