mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Customize: Fix logic for determining the container element when focusing on a panel, section, or control.
Fixes #33695 for trunk. Built from https://develop.svn.wordpress.org/trunk@33939 git-svn-id: http://core.svn.wordpress.org/trunk@33908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
274373afc6
commit
7c6534fd4c
@ -82,8 +82,10 @@
|
||||
params = params || {};
|
||||
focus = function () {
|
||||
var focusContainer;
|
||||
if ( construct.expanded && construct.expanded() ) {
|
||||
focusContainer = construct.container.find( 'ul:first' );
|
||||
if ( construct.extended( api.Panel ) && construct.expanded && construct.expanded() ) {
|
||||
focusContainer = construct.container.find( 'ul.control-panel-content' );
|
||||
} else if ( construct.extended( api.Section ) && construct.expanded && construct.expanded() ) {
|
||||
focusContainer = construct.container.find( 'ul.accordion-section-content' );
|
||||
} else {
|
||||
focusContainer = construct.container;
|
||||
}
|
||||
|
4
wp-admin/js/customize-controls.min.js
vendored
4
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33938';
|
||||
$wp_version = '4.4-alpha-33939';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user