Don't sanitize theme tags while trying to search through them, as it is unnecessary. It is also very expensive -- 50% of the pageload for a search was spent sanitizing tags. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20026 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11c4081aaf
commit
3924c4aab5
@ -198,7 +198,7 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
$matched = 0;
|
||||
|
||||
// In a tag?
|
||||
if ( in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
|
||||
if ( in_array( $word, $theme['Tags'] ) )
|
||||
$matched = 1;
|
||||
|
||||
// In one of the fields?
|
||||
@ -216,7 +216,7 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
if ( count( $this->features ) > 0 ) {
|
||||
foreach ( $this->features as $word ) {
|
||||
// In a tag?
|
||||
if ( !in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
|
||||
if ( !in_array( $word, $theme['Tags'] ) )
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user