Make WordPress Core

Ticket #36660: 36660.patch

File 36660.patch, 571 bytes (added by ocean90, 8 years ago)
  • src/wp-includes/class-wp-customize-widgets.php

     
    10641064         * @return array
    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'] );
    10701070                return $sidebars_widgets;