[wp-trac] [WordPress Trac] #34057: `get_page_of_comment()` not limiting query to proper post

WordPress Trac noreply at wordpress.org
Mon Sep 28 15:01:33 UTC 2015


#34057: `get_page_of_comment()` not limiting query to proper post
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  4.4
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 [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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list