[wp-trac] [WordPress Trac] #37048: Unapproved comments show publicly when using custom page parameter

WordPress Trac noreply at wordpress.org
Wed Jun 8 04:00:21 UTC 2016


#37048: Unapproved comments show publicly when using custom page parameter
--------------------------+---------------------------
 Reporter:  smerriman     |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.6
Component:  Comments      |     Version:  4.4.1
 Severity:  critical      |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37655"]:
 {{{
 #!CommitTicketReference repository="" revision="37655"
 Comments: In `wp_list_comments()`, queries with custom pagination params
 should obey default `comment_status` logic.

 When custom pagination parameters are passed to `wp_list_comments()`, a
 secondary query must be performed to fetch the proper comments. See
 [36157].
 This query should show comments of the same `comment_status` as the
 default
 query initialized in `comments_template()`: show only comments that are
 approved, or those that are unapproved but belong to the current user.

 Props smerriman.
 Fixes #37048.
 }}}

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


More information about the wp-trac mailing list