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:
parent
f76ed758b8
commit
b152b46c0e
@ -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 );
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user