Make WordPress Core


Ignore:
Timestamp:
08/31/2015 11:07:57 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Collapse any expanded panel/sections before expanding other panel/sections

Fix removes need for workaround introduced in [33488] for direct link from nav menu widget to the customizer widgets panel. The todo is now implemented.

Props celloexpressions, westonruter.
Fixes #33396 for trunk.

File:
1 edited

Legend:

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

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