WordPress.org

Make WordPress Core

Changeset 20379


Ignore:
Timestamp:
04/06/12 19:21:31 (3 years ago)
Author:
nacin
Message:

Use WP_Theme::exists(). see #20361.

File:
1 edited

Legend:

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

    r20328 r20379  
    5252$theme = wp_get_theme( $stylesheet ); 
    5353 
    54 if ( ! $theme ) 
     54if ( ! $theme->exists() ) 
    5555    wp_die( __( 'The requested theme does not exist.' ) ); 
    5656 
Note: See TracChangeset for help on using the changeset viewer.