[wp-trac] [WordPress Trac] #30235: Improve ability to filter active state for widget area Customizer sections

WordPress Trac noreply at wordpress.org
Wed Nov 12 22:00:11 UTC 2014


#30235: Improve ability to filter active state for widget area Customizer sections
--------------------------+-------------------------
 Reporter:  westonruter   |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.1
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------

Comment (by westonruter):

 Replying to [comment:6 ocean90]:
 > Can we fix this or shoudl we exclude it from the patch for now?

 Strange. For some reason the section is not getting registered in the
 preview and so it is not iterated over inside of
 `WP_Customize_Manager::customize_preview_settings()`:

 {{{#!php
 foreach ( $this->sections as $id => $section ) {
         $settings['activeSections'][ $id ] = $section->active();
 }
 }}}

 Because the panel's sole section is then inactive, the panel then
 automatically is considered inactive as well (contextually inactive). It's
 strange because the control and the panel both are being picked up. It's
 just the section that is not.

 I'm looking into why.

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


More information about the wp-trac mailing list