[wp-trac] [WordPress Trac] #8071: Refrain from querying all the comments on a post when paged

WordPress Trac noreply at wordpress.org
Sat Sep 26 02:24:20 UTC 2015


#8071: Refrain from querying all the comments on a post when paged
------------------------------------+---------------------------
 Reporter:  markjaquith             |       Owner:  boonebgorges
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  4.4
Component:  Comments                |     Version:  2.7
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+---------------------------

Comment (by wonderboymusic):

 In [changeset:"34569"]:
 {{{
 #!CommitTicketReference repository="" revision="34569"
 Comments: in `WP_Comment::get_children()`, accept an array so that the
 values for `format`, `status`, `hierarchical`, and `orderby` can be
 passed, instead of just `format`. The defaults for `get_comments()`
 include `status = 'all'` and `orderby = ''` - which is no bueno.

 For threaded comments, we need comments to be retrieved within bounds, so
 logged-out users don't see unmoderated comments on the front end, etc.

 Updates unit tests.

 See #8071.
 }}}

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


More information about the wp-trac mailing list