mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Customize: Exclude widget ID attributes from search.
Having search terms match the ID attributes leads to confusing results, specifically when the admin interface is set to a language other than English. Follow-up to [27650]. Props afercia, dlh, noisysocks. Fixes #46456. git-svn-id: https://develop.svn.wordpress.org/trunk@49586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
match = new RegExp( '^(?=.*' + term + ').+', 'i' );
|
||||
|
||||
this.each( function ( data ) {
|
||||
haystack = [ data.get( 'name' ), data.get( 'id' ), data.get( 'description' ) ].join( ' ' );
|
||||
haystack = [ data.get( 'name' ), data.get( 'description' ) ].join( ' ' );
|
||||
data.set( 'search_matched', match.test( haystack ) );
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user