Customizer: Restore Shift + Clicking on widgets to open the widgets panel.

Includes an alternative for jQuery UI's `:focusable` selector because it has an ancestor visibility requirement, see https://github.com/jquery/jquery-ui/pull/1583.

props westonruter.
fixes #33258.
Built from https://develop.svn.wordpress.org/trunk@33596


git-svn-id: http://core.svn.wordpress.org/trunk@33563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-08-08 09:37:26 +00:00
parent f673128a13
commit 04c21a0e3c
5 changed files with 8 additions and 7 deletions

View File

@ -73,8 +73,9 @@
} else { } else {
focusContainer = construct.container; focusContainer = construct.container;
} }
focusContainer.find( ':focusable:first' ).focus();
focusContainer[0].scrollIntoView( true ); // Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583
focusContainer.find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' ).first().focus();
}; };
if ( params.completeCallback ) { if ( params.completeCallback ) {
completeCallback = params.completeCallback; completeCallback = params.completeCallback;

File diff suppressed because one or more lines are too long

View File

@ -1270,7 +1270,7 @@
if ( expanded ) { if ( expanded ) {
if ( 'undefined' != typeof api.section( self.section ) && ! api.section( self.section ).expanded() ) { if ( self.section() && api.section( self.section() ) ) {
self.expandControlSection(); self.expandControlSection();
} }

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-RC2-33595'; $wp_version = '4.3-RC2-33596';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.