mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Customizer Theme Switcher: Don't deactivate section on empty search results.
props westonruter. fixes #31889. Built from https://develop.svn.wordpress.org/trunk@32083 git-svn-id: http://core.svn.wordpress.org/trunk@32062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0402c0b877
commit
79eee23a29
@ -584,6 +584,21 @@
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Override Section.isContextuallyActive method.
|
||||
*
|
||||
* Ignore the active states' of the contained theme controls, and just
|
||||
* use the section's own active state instead. This ensures empty search
|
||||
* results for themes to cause the section to become inactive.
|
||||
*
|
||||
* @since 4.2.0
|
||||
*
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
isContextuallyActive: function () {
|
||||
return this.active();
|
||||
},
|
||||
|
||||
/**
|
||||
* @since 4.2.0
|
||||
*/
|
||||
|
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.2-beta4-32082';
|
||||
$wp_version = '4.2-beta4-32083';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user