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:
nacin 2012-02-28 20:41:53 +00:00
parent 9b49096f5e
commit 2a15b783aa
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}