[wp-trac] [WordPress Trac] #27965: Error in theme customizer if all widget areas are empty

WordPress Trac noreply at wordpress.org
Tue Apr 22 09:32:45 UTC 2014


#27965: Error in theme customizer if all widget areas are empty
----------------------------+------------------------------
 Reporter:  jramon.redondo  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  3.9
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by jramon.redondo):

 Needle, thanks a lot, your fix works like a charm. I am going to reproduce
 your fix here to help other people:

 {{{
 add_filter('sidebars_widgets', 'fix_error_in_theme_customizer_wp39', 999);

 function fix_error_in_theme_customizer_wp39( $array ) {
         if ( !is_array( $array ) ) {
                 $array = array();
         }
         return $array;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27965#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list