Make WordPress Core

Changeset 20026


Ignore:
Timestamp:
02/28/2012 08:41:53 PM (13 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-themes-list-table.php

    r19980 r20026  
    199199
    200200                // In a tag?
    201                 if ( in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
     201                if ( in_array( $word, $theme['Tags'] ) )
    202202                    $matched = 1;
    203203
     
    217217            foreach ( $this->features as $word ) {
    218218                // In a tag?
    219                 if ( !in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
     219                if ( !in_array( $word, $theme['Tags'] ) )
    220220                    return false;
    221221            }
Note: See TracChangeset for help on using the changeset viewer.