Customizer Theme Switcher: Remove "Add New" reference from customize-controls.js.

see #31837.

git-svn-id: https://develop.svn.wordpress.org/trunk@32004 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-04-04 14:13:14 +00:00
parent f76ed758b8
commit b152b46c0e

View File

@ -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 );
});