From e4698ba1be531dd1ecb337819351bf0939c953d1 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 14 Dec 2010 19:19:47 +0000 Subject: [PATCH] Revert to WP_DEFAULT_THEME if a child theme is in use and no style.css is present. fixes #15712, props greuben. git-svn-id: http://svn.automattic.com/wordpress/trunk@16925 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 838bb27cf..41cdac17e 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1286,7 +1286,7 @@ function validate_current_theme() { switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); return false; } - + if ( is_child_theme() && ! file_exists( get_stylesheet_directory() . '/style.css' ) ) { switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); return false;