Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-widgets.php

    r33942 r33488  
    15751575            <?php
    15761576            if ( isset( $GLOBALS['wp_customize'] ) && $GLOBALS['wp_customize'] instanceof WP_Customize_Manager ) {
    1577                 $url = 'javascript: wp.customize.panel( "nav_menus" ).focus();';
     1577                // @todo When expanding a panel, the JS should be smart enough to collapse any existing panels and sections.
     1578                $url = 'javascript: wp.customize.section.each(function( section ){ section.collapse(); }); wp.customize.panel( "nav_menus" ).focus();';
    15781579            } else {
    15791580                $url = admin_url( 'nav-menus.php' );
Note: See TracChangeset for help on using the changeset viewer.