WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/06/2010 07:53:40 PM (11 years ago)
Author:
nacin
Message:

Remove WP_FALLBACK_THEME, use WP_DEFAULT_THEME instead. We now only fall back to the default theme if the theme is broken. Incomplete themes that need to inherit templates will inherit them from wp-includes/theme-compat -- this behavior is deprecated. fixes #12846.

File:
1 edited

Legend:

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

    r14326 r14485  
    16241624            $index = implode('', file("$oldpath/$oldfile"));
    16251625            if (strpos($index, 'WP_USE_THEMES') !== false) {
    1626                 if (! @copy(WP_CONTENT_DIR . '/themes/'.WP_FALLBACK_THEME.'/index.php', "$site_dir/$newfile"))
     1626                if (! @copy(WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME . '/index.php', "$site_dir/$newfile"))
    16271627                    return false;
    16281628                continue; // Don't copy anything
     
    16841684function make_site_theme_from_default($theme_name, $template) {
    16851685    $site_dir = WP_CONTENT_DIR . "/themes/$template";
    1686     $default_dir = WP_CONTENT_DIR . '/themes/'.WP_FALLBACK_THEME;
     1686    $default_dir = WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME;
    16871687
    16881688    // Copy files from the default theme to the site theme.
     
    17801780    // Make the new site theme active.
    17811781    $current_template = __get_option('template');
    1782     if ($current_template == WP_FALLBACK_THEME) {
     1782    if ($current_template == WP_DEFAULT_THEME) {
    17831783        update_option('template', $template);
    17841784        update_option('stylesheet', $template);
Note: See TracChangeset for help on using the changeset viewer.