Changeset 34075
- Timestamp:
- 09/12/2015 07:35:05 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r34069 r34075 704 704 */ 705 705 function get_comments_link( $post_id = 0 ) { 706 $comments_link = get_permalink( $post_id ) . '#comments'; 706 $hash = get_comments_number( $post_id ) ? '#comments' : '#respond'; 707 $comments_link = get_permalink( $post_id ) . $hash; 707 708 /** 708 709 * Filter the returned post comments permalink.
Note: See TracChangeset
for help on using the changeset viewer.