Ticket #12249: get_comments_link.diff
File get_comments_link.diff, 525 bytes (added by , 14 years ago) |
---|
-
wp-includes/comment-template.php
512 512 * 513 513 * @since 1.5.0 514 514 * 515 * @param int $post_id Optional post id 515 516 * @return string The link to the comments 516 517 */ 517 function get_comments_link( ) {518 return get_permalink( ) . '#comments';518 function get_comments_link($post_id = 0) { 519 return get_permalink($post_id) . '#comments'; 519 520 } 520 521 521 522 /**