-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
If comments are set to display across multiple pages (Settings > Discussion > Other comment settings > Break comments into pages …), the anchor associated with the next and previous comment navigation is incorrect. By default, the anchor is defined as #comments in the WordPress core.
The anchor needs to be changed to #comment to match the ID used on the comment form wrapper.
function get_comments_link($post_id = 0) {
return get_permalink($post_id) . '#comments';
}This function is found in comment-template.php.
There are also references to #comments in feed-atom.php and link-template.php … which is odd, because every other reference to the comment form anchor in the current WordPress core points to #respond.