Changeset 33942
- Timestamp:
- 09/07/2015 06:19:35 AM (8 years ago)
- Location:
- branches/4.3/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-admin/js/customize-controls.js
r33941 r33942 658 658 }); 659 659 } else { 660 api.panel.each( function( panel ) { 661 panel.collapse(); 662 }); 660 663 expand(); 661 664 } … … 1267 1270 // Collapse any sibling sections/panels 1268 1271 api.section.each( function ( section ) { 1269 if ( !section.panel() ) {1272 if ( panel.id !== section.panel() ) { 1270 1273 section.collapse( { duration: 0 } ); 1271 1274 } -
branches/4.3/src/wp-includes/default-widgets.php
r33488 r33942 1575 1575 <?php 1576 1576 if ( isset( $GLOBALS['wp_customize'] ) && $GLOBALS['wp_customize'] instanceof WP_Customize_Manager ) { 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();'; 1577 $url = 'javascript: wp.customize.panel( "nav_menus" ).focus();'; 1579 1578 } else { 1580 1579 $url = admin_url( 'nav-menus.php' );
Note: See TracChangeset
for help on using the changeset viewer.