mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't validate theme during install.
git-svn-id: https://develop.svn.wordpress.org/trunk@4024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user