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:
Dominik Schilling 2015-04-08 17:53:28 +00:00
parent 0402c0b877
commit 79eee23a29
3 changed files with 18 additions and 3 deletions

View File

@ -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
*/

File diff suppressed because one or more lines are too long

View File

@ -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.