WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/30/2008 06:21:14 AM (13 years ago)
Author:
westi
Message:

Look for template files in the stylesheet folder as well as the template folder for inheriting themes. Fixes #7086 props ionfish.

File:
1 edited

Legend:

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

    r8164 r8497  
    665665
    666666    define('COMMENTS_TEMPLATE', true);
    667     $include = apply_filters('comments_template', TEMPLATEPATH . $file );
     667       
     668    $include = apply_filters('comments_template', STYLESHEETPATH . $file );
    668669    if ( file_exists( $include ) )
    669670        require( $include );
     671    elseif ( file_exists( TEMPLATEPATH . $file ) )
     672        require( TEMPLATEPATH .  $file );
    670673    else
    671         require( WP_CONTENT_DIR . '/themes/default/comments.php');
     674        require( get_theme_root() . '/default/comments.php');
    672675}
    673676
Note: See TracChangeset for help on using the changeset viewer.