#34057 closed defect (bug) (fixed)
`get_page_of_comment()` not limiting query to proper post
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 4.4 | Priority: | high |
| Severity: | normal | Version: | |
| Component: | Comments | Keywords: | |
| Focuses: | Cc: |
Description
[34535] changed get_page_of_comment() so that it uses WP_Comment_Query, but it was done incorrectly. The 'post_ID' parameter of WP_Comment_Query does nothing; it should be 'post_id' instead. (That's a separate mess that ought to be cleaned up at some point.)
Aside from creating incorrect comment pages, this bug is also exhausting resources on blogs with many comments.
Change History (6)
#5
follow-up:
↓ 6
@
10 years ago
@boonebgorges:
Why have comment-page-1/ in almost every comment permalink? This part used not to be present unless comment page > 1. See https://make.wordpress.org/core/comments/feed/
I this has not the same cause as what is fixed here, I can open a new ticket.
#6
in reply to:
↑ 5
@
10 years ago
Replying to knutsp:
@boonebgorges:
Why havecomment-page-1/in almost every comment permalink? This part used not to be present unless comment page > 1. See https://make.wordpress.org/core/comments/feed/
I this has not the same cause as what is fixed here, I can open a new ticket.
It's not really the same issue, but it's a legitimate one, and more closely related to #8071. Please open a separate ticket.
In 34660: