diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 1e5103a..4a05eb7 100644
|
|
|
|
| 648 | 648 | completeCallback: expand |
| 649 | 649 | }); |
| 650 | 650 | } else { |
| | 651 | api.panel.each( function( panel ) { |
| | 652 | panel.collapse(); |
| | 653 | }); |
| 651 | 654 | expand(); |
| 652 | 655 | } |
| 653 | 656 | |
| … |
… |
|
| 1257 | 1260 | |
| 1258 | 1261 | // Collapse any sibling sections/panels |
| 1259 | 1262 | api.section.each( function ( section ) { |
| 1260 | | if ( ! section.panel() ) { |
| | 1263 | if ( panel.id !== section.panel() ) { |
| 1261 | 1264 | section.collapse( { duration: 0 } ); |
| 1262 | 1265 | } |
| 1263 | 1266 | }); |
diff --git src/wp-includes/default-widgets.php src/wp-includes/default-widgets.php
index 22e61e5..48a3917 100644
|
|
|
class WP_Widget_Tag_Cloud extends WP_Widget { |
| 1574 | 1574 | <p class="nav-menu-widget-no-menus-message" <?php if ( ! empty( $menus ) ) { echo ' style="display:none" '; } ?>> |
| 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' ); |
| 1581 | 1580 | } |