WordPress.org

Make WordPress Core

Changeset 13018


Ignore:
Timestamp:
02/07/2010 10:27:51 PM (8 years ago)
Author:
ryan
Message:

Make twentyten the fallback theme. see #9015

File:
1 edited

Legend:

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

    r13014 r13018  
    11611161        return true;
    11621162
    1163     if ( get_template() != 'default' && !file_exists(get_template_directory() . '/index.php') ) {
    1164         switch_theme('default', 'default');
     1163    $fallback = 'twentyten';
     1164
     1165    if ( get_template() != $fallback && !file_exists(get_template_directory() . '/index.php') ) {
     1166        switch_theme($fallback, $fallback);
    11651167        return false;
    11661168    }
    11671169
    1168     if ( get_stylesheet() != 'default' && !file_exists(get_template_directory() . '/style.css') ) {
    1169         switch_theme('default', 'default');
     1170    if ( get_stylesheet() != $fallback && !file_exists(get_template_directory() . '/style.css') ) {
     1171        switch_theme($fallback, $fallback);
    11701172        return false;
    11711173    }
Note: See TracChangeset for help on using the changeset viewer.