Make WordPress Core

Changeset 2518


Ignore:
Timestamp:
04/06/2005 03:13:56 PM (22 years ago)
Author:
matt
Message:

Adding new comment template hooks

File:
1 edited

Legend:

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

    r2516 r2518  
    2121        get_currentuserinfo();
    2222
    23         if ( file_exists( TEMPLATEPATH . $file ) )
    24                 require( TEMPLATEPATH . $file );
     23        define('COMMENTS_TEMPLATE', true);
     24        $include = apply_filters('comments_template', TEMPLATEPATH . $file );
     25        if ( file_exists( $include ) )
     26                require( $include );
    2527        else
    2628                require( ABSPATH . 'wp-content/themes/default/comments.php');
Note: See TracChangeset for help on using the changeset viewer.