From ee112fbd12d53fe8cefce2f7d8ceb9bea0370912 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 7 Feb 2010 22:27:51 +0000 Subject: [PATCH] Make twentyten the fallback theme. see #9015 git-svn-id: https://develop.svn.wordpress.org/trunk@13018 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index aef4482cf4..c887f99420 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1160,13 +1160,15 @@ function validate_current_theme() { if ( defined('WP_INSTALLING') || !apply_filters( 'validate_current_theme', true ) ) return true; - if ( get_template() != 'default' && !file_exists(get_template_directory() . '/index.php') ) { - switch_theme('default', 'default'); + $fallback = 'twentyten'; + + if ( get_template() != $fallback && !file_exists(get_template_directory() . '/index.php') ) { + switch_theme($fallback, $fallback); return false; } - if ( get_stylesheet() != 'default' && !file_exists(get_template_directory() . '/style.css') ) { - switch_theme('default', 'default'); + if ( get_stylesheet() != $fallback && !file_exists(get_template_directory() . '/style.css') ) { + switch_theme($fallback, $fallback); return false; }