From 789b3714d3f22badd12d359462594a563f9f4897 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 6 Apr 2012 19:21:31 +0000 Subject: [PATCH] Use WP_Theme::exists(). see #20361. git-svn-id: http://svn.automattic.com/wordpress/trunk@20379 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 a84aebeb3..8660f6041 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 );