[wp-trac] [WordPress Trac] #30378: Empty widget areas get deactivated in the Customizer

WordPress Trac noreply at wordpress.org
Tue Nov 18 11:31:14 UTC 2014


#30378: Empty widget areas get deactivated in the Customizer
------------------------------+--------------------------
 Reporter:  celloexpressions  |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  4.1
Component:  Customize         |     Version:  trunk
 Severity:  blocker           |  Resolution:
 Keywords:  needs-patch       |     Focuses:  javascript
------------------------------+--------------------------
Changes (by westonruter):

 * owner:   => westonruter
 * status:  new => assigned


Comment:

 Here is a shortcut which can be pasted into the browser console to empty
 out all sidebars to trigger the bad behavior:

 {{{#!js
 _.each( wp.customize.panel('widgets').sections(), function ( section ) {
     var controls = section.controls();
     controls.pop().setting( [] ); // the last control is the
 SidebarWidgets control, the list of widget IDs in the sidebar
 } );
 }}}

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


More information about the wp-trac mailing list