Make WordPress Core


Ignore:
Timestamp:
05/03/2010 09:57:24 AM (15 years ago)
Author:
westi
Message:

First pass of compatibility code for old themes which relied on using templates from the default theme without expressly identifying it as the parent theme.
Fixes #12425 and #13009.
The fallback to these template files is now depreceated and will be removed in a future version.

File:
1 edited

Legend:

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

    r14360 r14365  
    984984 *
    985985 * Checks for comment popup template in current template, if it exists or in the
    986  * parent template. If it doesn't exist, then it retrieves the comment-popup.php
    987  * file from the WP_FALLBACK_THEME theme. The WP_FALLBACK_THEME theme must then exist for it to
    988  * work.
     986 * parent template.
    989987 *
    990988 * @since 1.5.0
     
    995993function get_comments_popup_template() {
    996994    $template = locate_template(array("comments-popup.php"));
     995
     996    // Backward compat code will be removed in a future release
    997997    if ('' == $template)
    998         $template = get_theme_root() . '/' . WP_FALLBACK_THEME . '/comments-popup.php';
     998        $template = WPINC . '/theme-compat/comments-popup.php';
    999999
    10001000    return apply_filters('comments_popup_template', $template);
Note: See TracChangeset for help on using the changeset viewer.