mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
Themes: Only show author names during a search if it matches 3 or more characters.
props matveb. fixes #26422. Built from https://develop.svn.wordpress.org/trunk@26686 git-svn-id: http://core.svn.wordpress.org/trunk@26576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
462d342de1
commit
e509a66071
@ -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 );
|
||||
}
|
||||
|
||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user