Ticket #27136: 27136.diff
File 27136.diff, 899 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/js/theme.js
189 189 // Find results 190 190 // _.filter and .test 191 191 results = this.filter( function( data ) { 192 haystack = _.union( data.get( 'name' ), data.get( 'id' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );192 var name, description, author; 193 193 194 name = data.get( 'name' ).replace( /(<([^>]+)>)/ig, '' ); 195 description = data.get( 'description' ).replace( /(<([^>]+)>)/ig, '' ); 196 author = data.get( 'author' ).replace( /(<([^>]+)>)/ig, '' ); 197 198 haystack = _.union( name, data.get( 'id' ), description, author, data.get( 'tags' ) ); 199 194 200 if ( match.test( data.get( 'author' ) ) && term.length > 2 ) { 195 201 data.set( 'displayAuthor', true ); 196 202 }