Ticket #19893: comment-template.php.no-responses.get_comments_link.patch
File comment-template.php.no-responses.get_comments_link.patch, 479 bytes (added by , 13 years ago) |
---|
-
comment-template.php
516 516 * @return string The link to the comments 517 517 */ 518 518 function get_comments_link($post_id = 0) { 519 return get_permalink($post_id) . '#comments';519 return 0 == get_comments_num( $post_id ) ? get_permalink( $post_id ) . '#respond' : get_permalink($post_id) . '#comments'; 520 520 } 521 521 522 522 /**