From e98d56fab4be21608af2988c9a5473e7a0d990c0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 Dec 2013 19:56:16 +0000 Subject: [PATCH] Themes: Only show author names during a search if it matches 3 or more characters. props matveb. fixes #26422. git-svn-id: https://develop.svn.wordpress.org/trunk@26686 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 0505774711..1739b086db 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -146,7 +146,7 @@ themes.Collection = Backbone.Collection.extend({ results = this.filter( function( data ) { haystack = _.union( data.get( 'name' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) ); - if ( match.test( data.get( 'author' ) ) ) { + if ( match.test( data.get( 'author' ) ) && term.length > 2 ) { data.set( 'displayAuthor', true ); }