Customize: Fix PHP notice when calling `WP_Customize_Control::json()` inside `content_template()` method.
A `temp` control is instantiated when `WP_Customize_Manager:: render_control_templates()` is called. This control needs to explicitly specify an empty settings array to avoid trying to use a `temp` setting which won't exist. See #35926. See #29572. Built from https://develop.svn.wordpress.org/trunk@36776 git-svn-id: http://core.svn.wordpress.org/trunk@36743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d115144857
commit
53493af312
|
@ -1401,7 +1401,9 @@ final class WP_Customize_Manager {
|
|||
*/
|
||||
public function render_control_templates() {
|
||||
foreach ( $this->registered_control_types as $control_type ) {
|
||||
$control = new $control_type( $this, 'temp', array() );
|
||||
$control = new $control_type( $this, 'temp', array(
|
||||
'settings' => array(),
|
||||
) );
|
||||
$control->print_template();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-beta1-36775';
|
||||
$wp_version = '4.5-beta1-36776';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue