mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 23:17:51 +01:00
Customize: Prevent themes panel from auto-expanding in IE11.
In IE11 the `input` event erroneously gets triggered initially without any user input. Amends [41648]. See #37661. Fixes #42556 for 4.9. Built from https://develop.svn.wordpress.org/branches/4.9@42188 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff85340727
commit
567de560e9
@ -1867,6 +1867,9 @@
|
|||||||
// Search terms.
|
// Search terms.
|
||||||
debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search.
|
debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search.
|
||||||
section.contentContainer.on( 'input', '.wp-filter-search', function() {
|
section.contentContainer.on( 'input', '.wp-filter-search', function() {
|
||||||
|
if ( ! api.panel( 'themes' ).expanded() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
debounced( section );
|
debounced( section );
|
||||||
if ( ! section.expanded() ) {
|
if ( ! section.expanded() ) {
|
||||||
section.expand();
|
section.expand();
|
||||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
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.9-RC3-42186';
|
$wp_version = '4.9-RC3-42188';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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