[wp-trac] [WordPress Trac] #34468: Don't enqueue nav menu scripts or templates in Customizer when panel isn't present

WordPress Trac noreply at wordpress.org
Tue Oct 27 16:05:42 UTC 2015


#34468: Don't enqueue nav menu scripts or templates in Customizer when panel isn't
present
-----------------------------+------------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Customize        |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by westonruter):

 @danielbachhuber I think the problem is that it is not fully removing the
 nav menus functionality from being run. Please see #33552 for the code
 needed in 4.3 and the new code for 4.4:

 {{{#!php
 <?php
 add_filter( 'customize_loaded_components', function( $components ) {
     return array_filter( $components, function ( $component ) {
          return 'nav_menus' !== $component;
     } );
 } );
 }}}

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


More information about the wp-trac mailing list