Make WordPress Core


Ignore:
Timestamp:
05/02/2016 11:41:18 PM (8 years ago)
Author:
westonruter
Message:

Customize: Handle filtering sidebars_widgets when the underlying option is non-existent.

Fixes warning related to a non-array argument for array_merge() in WP_Customize_Widgets::customize_register().

See [37166].
See #36389.
Fixes #36660.

File:
1 edited

Legend:

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

    r37279 r37352  
    10651065     */
    10661066    public function preview_sidebars_widgets( $sidebars_widgets ) {
    1067         $sidebars_widgets = get_option( 'sidebars_widgets' );
     1067        $sidebars_widgets = get_option( 'sidebars_widgets', array() );
    10681068
    10691069        unset( $sidebars_widgets['array_version'] );
Note: See TracChangeset for help on using the changeset viewer.