Make WordPress Core


Ignore:
Timestamp:
08/11/2008 10:52:43 PM (17 years ago)
Author:
ryan
Message:

crazyhorse: merge with log:trunk@8334:8619 , merge arrows unresolved

File:
1 edited

Legend:

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

    r8242 r8620  
    321321 * @uses $comment
    322322 *
     323 * @param object|string|int $comment Comment to retrieve.
    323324 * @return string The permalink to the current comment
    324325 */
    325 function get_comment_link() {
    326     global $comment;
     326function get_comment_link($comment = null) {
     327    $comment = get_comment($comment);
    327328    return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;
    328329}
     
    665666
    666667    define('COMMENTS_TEMPLATE', true);
    667     $include = apply_filters('comments_template', TEMPLATEPATH . $file );
     668
     669    $include = apply_filters('comments_template', STYLESHEETPATH . $file );
    668670    if ( file_exists( $include ) )
    669671        require( $include );
     672    elseif ( file_exists( TEMPLATEPATH . $file ) )
     673        require( TEMPLATEPATH .  $file );
    670674    else
    671         require( WP_CONTENT_DIR . '/themes/default/comments.php');
     675        require( get_theme_root() . '/default/comments.php');
    672676}
    673677
Note: See TracChangeset for help on using the changeset viewer.