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: http://svn.automattic.com/wordpress/trunk@20026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9b49096f5e
commit
2a15b783aa
|
@ -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