Make WordPress Core


Ignore:
Timestamp:
07/09/2014 06:06:54 PM (11 years ago)
Author:
wonderboymusic
Message:

Revert [28563]. See #18298.

File:
1 edited

Legend:

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

    r28976 r29044  
    10641064 *
    10651065 * The $file path is passed through a filter hook called, 'comments_template'
    1066  * which includes the template path and $file combined. Tries the $filtered path
     1066 * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path
    10671067 * first and if it fails it will require the default comment template from the
    10681068 * default theme. If either does not exist, then the WordPress process will be
     
    11491149        define('COMMENTS_TEMPLATE', true);
    11501150
    1151     $theme_template = get_stylesheet_directory() . $file;
     1151    $theme_template = STYLESHEETPATH . $file;
    11521152    /**
    11531153     * Filter the path to the theme template file used for the comments template.
     
    11601160    if ( file_exists( $include ) )
    11611161        require( $include );
    1162     elseif ( file_exists( get_template_directory() . $file ) )
    1163         require( get_template_directory() . $file );
     1162    elseif ( file_exists( TEMPLATEPATH . $file ) )
     1163        require( TEMPLATEPATH . $file );
    11641164    else // Backward compat code will be removed in a future release
    11651165        require( ABSPATH . WPINC . '/theme-compat/comments.php');
Note: See TracChangeset for help on using the changeset viewer.