mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Don't validate theme during install.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e109d4e11b
commit
f423760531
@ -370,6 +370,10 @@ function load_template($file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validate_current_theme() {
|
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'))) {
|
if ((get_template() != 'default') && (!file_exists(get_template_directory() . '/index.php'))) {
|
||||||
update_option('template', 'default');
|
update_option('template', 'default');
|
||||||
update_option('stylesheet', 'default');
|
update_option('stylesheet', 'default');
|
||||||
|
Loading…
Reference in New Issue
Block a user