Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-includes / class-wp-customize-widgets.php
index 0a73953167b47d8afbe45d8bd40164bf4d3d9845..e2b8bf5f66a89377a1941bf596340628fc7eead4 100644 (file)
@@ -1061,7 +1061,7 @@ final class WP_Customize_Widgets {
         * @return array
         */
        public function preview_sidebars_widgets( $sidebars_widgets ) {
-               $sidebars_widgets = get_option( 'sidebars_widgets' );
+               $sidebars_widgets = get_option( 'sidebars_widgets', array() );
 
                unset( $sidebars_widgets['array_version'] );
                return $sidebars_widgets;