mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Customizer Theme Switcher: Remove "Add New" reference from customize-controls.js.
see #31837. Built from https://develop.svn.wordpress.org/trunk@32004 git-svn-id: http://core.svn.wordpress.org/trunk@31983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8f67f4340
commit
59c586e5ad
@ -640,12 +640,11 @@
|
||||
term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ),
|
||||
controls = section.controls();
|
||||
|
||||
controls.pop(); // Remove the last control (the add-new control).
|
||||
|
||||
_.each( controls, function( control ) {
|
||||
control.filter( term );
|
||||
});
|
||||
// Update theme count. Note that the add-theme tile is a div.customize-control.
|
||||
|
||||
// Update theme count.
|
||||
count = section.container.find( 'li.customize-control:visible' ).length;
|
||||
section.container.find( '.theme-count' ).text( count );
|
||||
});
|
||||
|
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
|
||||
*/
|
||||
$wp_version = '4.2-beta4-32003';
|
||||
$wp_version = '4.2-beta4-32004';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user