WordPress.org

WordPress build repository browser

Changeset 41083


Ignore:
Timestamp:
08/12/17 21:21:48 (2 months ago)
Author:
westonruter
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-manager.php

    r41045 r41083  
    22792279        // Amend post values with any supplied data. 
    22802280        foreach ( $args['data'] as $setting_id => $setting_params ) { 
    2281             if ( array_key_exists( 'value', $setting_params ) ) { 
     2281            if ( is_array( $setting_params ) && array_key_exists( 'value', $setting_params ) ) { 
    22822282                $this->set_post_value( $setting_id, $setting_params['value'] ); // Add to post values so that they can be validated and sanitized. 
    22832283            } 
  • trunk/wp-includes/version.php

    r41082 r41083  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '4.9-alpha-41242'; 
     7$wp_version = '4.9-alpha-41243'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.