Changeset 8620 for branches/crazyhorse/wp-includes/comment-template.php
- Timestamp:
- 08/11/2008 10:52:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-includes/comment-template.php
r8242 r8620 321 321 * @uses $comment 322 322 * 323 * @param object|string|int $comment Comment to retrieve. 323 324 * @return string The permalink to the current comment 324 325 */ 325 function get_comment_link( ) {326 global $comment;326 function get_comment_link($comment = null) { 327 $comment = get_comment($comment); 327 328 return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID; 328 329 } … … 665 666 666 667 define('COMMENTS_TEMPLATE', true); 667 $include = apply_filters('comments_template', TEMPLATEPATH . $file ); 668 669 $include = apply_filters('comments_template', STYLESHEETPATH . $file ); 668 670 if ( file_exists( $include ) ) 669 671 require( $include ); 672 elseif ( file_exists( TEMPLATEPATH . $file ) ) 673 require( TEMPLATEPATH . $file ); 670 674 else 671 require( WP_CONTENT_DIR . '/themes/default/comments.php');675 require( get_theme_root() . '/default/comments.php'); 672 676 } 673 677
Note: See TracChangeset
for help on using the changeset viewer.