From a1cce20e0ae8ab1559802e4df433bd12b0d8bfc9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 21 Jul 2006 19:00:04 +0000 Subject: [PATCH] Don't validate theme during install. git-svn-id: https://develop.svn.wordpress.org/trunk@4024 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 7abf80930e..d7dcff0221 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -370,6 +370,10 @@ function load_template($file) { } function validate_current_theme() { + // Don't validate during an install/upgrade. + if ( defined('WP_INSTALLING') ) + return true; + if ((get_template() != 'default') && (!file_exists(get_template_directory() . '/index.php'))) { update_option('template', 'default'); update_option('stylesheet', 'default');