Make WordPress Core

Changeset 4024


Ignore:
Timestamp:
07/21/2006 07:00:04 PM (20 years ago)
Author:
ryan
Message:

Don't validate theme during install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r4017 r4024  
    371371
    372372function validate_current_theme() {
     373        // Don't validate during an install/upgrade.
     374        if ( defined('WP_INSTALLING') )
     375                return true;
     376
    373377        if ((get_template() != 'default') && (!file_exists(get_template_directory() . '/index.php'))) {
    374378                update_option('template', 'default');
Note: See TracChangeset for help on using the changeset viewer.