[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:09:48 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------

Comment (by boonebgorges):

 In [changeset:"34661"]:
 {{{
 #!CommitTicketReference repository="" revision="34661"
 In `get_page_of_comment()`, use a true `COUNT` query.

 This improves memory usage by not compiling a list of comment IDs.

 See #34057.
 }}}

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


More information about the wp-trac mailing list