From 6428de97a796595a00631d8c0b798a4244068f61 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 12 Aug 2017 21:21:48 +0000 Subject: [PATCH] Customize: Fix PHP warning raised when deleting a setting from changeset via passing `null` as params in `WP_Customize_Manager::save_changeset_post()`. Props dlh. Fixes #41621. Built from https://develop.svn.wordpress.org/trunk@41243 git-svn-id: http://core.svn.wordpress.org/trunk@41083 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 9ba93c575c..3c9de49f9e 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -2278,7 +2278,7 @@ final class WP_Customize_Manager { // Amend post values with any supplied data. foreach ( $args['data'] as $setting_id => $setting_params ) { - if ( array_key_exists( 'value', $setting_params ) ) { + if ( is_array( $setting_params ) && array_key_exists( 'value', $setting_params ) ) { $this->set_post_value( $setting_id, $setting_params['value'] ); // Add to post values so that they can be validated and sanitized. } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 730504ff12..551d14e55a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41242'; +$wp_version = '4.9-alpha-41243'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.