From b152b46c0e73d2f8c4a13d81eafbc90d55c757e0 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 4 Apr 2015 14:13:14 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-controls.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index fcf25a3517..e35ec4fdd8 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -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 ); });