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. Built from https://develop.svn.wordpress.org/trunk@49586 git-svn-id: http://core.svn.wordpress.org/trunk@49324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7baab642c1
commit
c5257328b7
|
@ -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 ) );
|
||||
} );
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-beta3-49585';
|
||||
$wp_version = '5.6-beta3-49586';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue