Themes: Search the theme's slug too.
props matveb. see #26730 for trunk. Built from https://develop.svn.wordpress.org/trunk@26921 git-svn-id: http://core.svn.wordpress.org/trunk@26802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee5fec7c6c
commit
56e3b1f46e
|
@ -146,7 +146,7 @@ themes.Collection = Backbone.Collection.extend({
|
||||||
// Find results
|
// Find results
|
||||||
// _.filter and .test
|
// _.filter and .test
|
||||||
results = this.filter( function( data ) {
|
results = this.filter( function( data ) {
|
||||||
haystack = _.union( data.get( 'name' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );
|
haystack = _.union( data.get( 'name' ), data.get( 'id' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );
|
||||||
|
|
||||||
if ( match.test( data.get( 'author' ) ) && term.length > 2 ) {
|
if ( match.test( data.get( 'author' ) ) && term.length > 2 ) {
|
||||||
data.set( 'displayAuthor', true );
|
data.set( 'displayAuthor', true );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue