From 7dbfae77c00866ce7229c602069735484adb580e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Apr 2012 19:21:31 +0000 Subject: [PATCH] Use WP_Theme::exists(). see #20361. git-svn-id: https://develop.svn.wordpress.org/trunk@20379 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/theme-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index a84aebeb31..8660f60414 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -51,7 +51,7 @@ else $theme = wp_get_theme( $stylesheet ); -if ( ! $theme ) +if ( ! $theme->exists() ) wp_die( __( 'The requested theme does not exist.' ) ); $allowed_files = $theme->get_files( 'php', 1 );