[wp-trac] [WordPress Trac] #33396: Customizer: focusing a control outside of a panel when a panel is open results in a blank screen with no navigation back
WordPress Trac
noreply at wordpress.org
Thu Aug 20 20:01:32 UTC 2015
#33396: Customizer: focusing a control outside of a panel when a panel is open
results in a blank screen with no navigation back
------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3.1
Component: Customize | Version: 4.3
Severity: major | Resolution:
Keywords: has-patch | Focuses: javascript
------------------------------+-------------------------
Comment (by westonruter):
This is related to a workaround I had to put in place for the
`WP_Nav_Menu_Widget` to deep link to the menus panel from a given nav menu
widget:
{{{#!php
<?php
if ( isset( $GLOBALS['wp_customize'] ) && $GLOBALS['wp_customize']
instanceof WP_Customize_Manager ) {
// @todo When expanding a panel, the JS should be smart enough to
collapse any existing panels and sections.
$url = 'javascript: wp.customize.section.each(function( section ){
section.collapse(); }); wp.customize.panel( "nav_menus" ).focus();';
} else {
$url = admin_url( 'nav-menus.php' );
}
?>
<?php echo sprintf( __( 'No menus have been created yet. <a
href="%s">Create some</a>.' ), esc_attr( $url ) ); ?>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33396#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list