WP_Customize_Selective_Refresh::handle_error

Advertisement

Summery Summery

Handles PHP errors triggered during rendering the partials.

Syntax Syntax

WP_Customize_Selective_Refresh::handle_error( int $errno, string $errstr, string $errfile = null, string $errline = null )

Description Description

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

Parameters Parameters

$errno

(Required) Error number.

$errstr

(Required) Error string.

$errfile

(Optional) Error file.

Default value: null

$errline

(Optional) Error line.

Default value: null

Return Return

(true) Always true.

Source Source

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

	public function handle_render_partials_request() {
		if ( ! $this->is_render_partials_request() ) {
			return;
		}

		/*
		 * Note that is_customize_preview() returning true will entail that the
		 * user passed the 'customize' capability check and the nonce check, since
		 * WP_Customize_Manager::setup_theme() is where the previewing flag is set.
		 */

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply