Make WordPress Core

Changeset 26686


Ignore:
Timestamp:
12/05/2013 07:56:16 PM (11 years ago)
Author:
nacin
Message:

Themes: Only show author names during a search if it matches 3 or more characters.

props matveb.
fixes #26422.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r26685 r26686  
    147147            haystack = _.union( data.get( 'name' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );
    148148
    149             if ( match.test( data.get( 'author' ) ) ) {
     149            if ( match.test( data.get( 'author' ) ) && term.length > 2 ) {
    150150                data.set( 'displayAuthor', true );
    151151            }
Note: See TracChangeset for help on using the changeset viewer.