mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02: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 || {};
|
params = params || {};
|
||||||
focus = function () {
|
focus = function () {
|
||||||
var focusContainer;
|
var focusContainer;
|
||||||
if ( construct.expanded && construct.expanded() ) {
|
if ( construct.extended( api.Panel ) && construct.expanded && construct.expanded() ) {
|
||||||
focusContainer = construct.container.find( 'ul:first' );
|
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 {
|
} else {
|
||||||
focusContainer = construct.container;
|
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
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user