Ticket #8583 (closed defect (bug): fixed)
If you're using paged coments, 'first' is selected in the options and wp_list_comments is used, then the comment permalinks on the first page will be broken
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.1 |
| Component: | Comments | Version: | 2.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Basically, if this set of circumstances is true then the individual comment permalinks will look like this on the first page:
http://localhost/wptrunk/2008/12/this-is-a-post/comment-page-/#comment-12345
Note that the number '1' should appear after 'comment-page-', since it's page 1. This happens since the 'cpage' query parameter isn't set for the first page of comments unless the option to show the latest comments by default is set.
Attached is a patch that fixes the problem.
Attachments
Change History
- Status changed from new to closed
- Resolution set to fixed
comment:4
Viper007Bond — 3 years ago
Dang, I thought I tested my bit of code to death. Sorry that slipped in.
comment:5
kretzschmar — 3 years ago
- Keywords has-patch removed
- Status changed from closed to reopened
- Resolution fixed deleted
If you change the number of comments per page with 'wp_list_comments' the first paginate_comments_links function ABOVE the comments isn't aware of it and is shown.
This is a real problem if newest option is choosen because the user has to switch to the second page before seeing any links at all.
comment:6
Viper007Bond — 3 years ago
- Status changed from reopened to closed
- Resolution set to fixed
Please open a new ticket rather than reopening this ticket. Your issue is unrelated to this one.

