WordPress.org

Make WordPress Core

Changeset 13202


Ignore:
Timestamp:
02/18/2010 10:09:06 PM (12 years ago)
Author:
westi
Message:

Move more references from default to WP_FALLBACK_THEME. To make 'default' theme transition smoother in the future.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r13146 r13202  
    1212 * Includes the header template for a theme or if a name is specified then a
    1313 * specialised header will be included. If the theme contains no header.php file
    14  * then the header from the default theme will be included.
     14 * then the header from the WP_FALLBACK_THEME theme will be included.
    1515 *
    1616 * For the parameter, if the file is called "header-special.php" then specify
     
    3333
    3434    if ('' == locate_template($templates, true))
    35         load_template( get_theme_root() . '/default/header.php');
     35        load_template( get_theme_root() . '/'. WP_FALLBACK_THEME. '/header.php');
    3636}
    3737
     
    6262
    6363    if ('' == locate_template($templates, true))
    64         load_template( get_theme_root() . '/default/footer.php');
     64        load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/footer.php');
    6565}
    6666
     
    9191
    9292    if ('' == locate_template($templates, true))
    93         load_template( get_theme_root() . '/default/sidebar.php');
     93        load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/sidebar.php');
    9494}
    9595
  • trunk/wp-includes/theme.php

    r13190 r13202  
    950950 * Checks for comment popup template in current template, if it exists or in the
    951951 * parent template. If it doesn't exist, then it retrieves the comment-popup.php
    952  * file from the default theme. The default theme must then exist for it to
     952 * file from the WP_FALLBACK_THEME theme. The WP_FALLBACK_THEME theme must then exist for it to
    953953 * work.
    954954 *
Note: See TracChangeset for help on using the changeset viewer.