Make WordPress Core


Ignore:
Timestamp:
02/13/2010 10:35:10 AM (17 years ago)
Author:
nacin
Message:

Don't use deprecated functions. see #11388

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r12859 r13106  
    143143                $allowed_themes = array_merge( $allowed_themes, $blog_allowed_themes );
    144144
    145         if ( isset( $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] ) == false )
    146                 $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] = true;
     145        if ( isset( $allowed_themes[ esc_html( $ct->stylesheet ) ] ) == false )
     146                $allowed_themes[ esc_html( $ct->stylesheet ) ] = true;
    147147
    148148        reset( $themes );
    149149        foreach ( $themes as $key => $theme ) {
    150                 if ( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false )
     150                if ( isset( $allowed_themes[ esc_html( $theme[ 'Stylesheet' ] ) ] ) == false )
    151151                        unset( $themes[ $key ] );
    152152        }
Note: See TracChangeset for help on using the changeset viewer.