Make WordPress Core


Ignore:
Timestamp:
04/13/2010 09:56:57 PM (14 years ago)
Author:
ryan
Message:

Use WP_FALLBACK_THEME instead of default. Props MichaelH. see #12846

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r14060 r14080  
    16141614            $index = implode('', file("$oldpath/$oldfile"));
    16151615            if (strpos($index, 'WP_USE_THEMES') !== false) {
    1616                 if (! @copy(WP_CONTENT_DIR . '/themes/default/index.php', "$site_dir/$newfile"))
     1616                if (! @copy(WP_CONTENT_DIR . '/themes/'.WP_FALLBACK_THEME.'/index.php', "$site_dir/$newfile"))
    16171617                    return false;
    16181618                continue; // Don't copy anything
     
    16741674function make_site_theme_from_default($theme_name, $template) {
    16751675    $site_dir = WP_CONTENT_DIR . "/themes/$template";
    1676     $default_dir = WP_CONTENT_DIR . '/themes/default';
     1676    $default_dir = WP_CONTENT_DIR . '/themes/'.WP_FALLBACK_THEME;
    16771677
    16781678    // Copy files from the default theme to the site theme.
     
    17701770    // Make the new site theme active.
    17711771    $current_template = __get_option('template');
    1772     if ($current_template == 'default') {
     1772    if ($current_template == WP_FALLBACK_THEME) {
    17731773        update_option('template', $template);
    17741774        update_option('stylesheet', $template);
Note: See TracChangeset for help on using the changeset viewer.