[wp-trac] [WordPress Trac] #28603: Improve "previously approved comment" test for logged-in users

WordPress Trac noreply at wordpress.org
Thu Oct 6 15:50:57 UTC 2016


#28603: Improve "previously approved comment" test for logged-in users
---------------------------------------------+--------------------------
 Reporter:  nevermoor                        |       Owner:  rachelbaker
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  Comments                         |     Version:  4.0
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"38738"]:
 {{{
 #!CommitTicketReference repository="" revision="38738"
 Comments: Improve check for previous comments for authenticated users in
 `check_comment()`.

 When the 'comment_whitelist' option is enabled and the commenter is an
 authenticated user, query for the existence of an approved comment with a
 matching `user_id`.  This allows authenticated users that have changed
 their email address to bypass having their comment held for moderation.

 Props voldemortensen, rachelbaker.
 Fixes #28603.
 }}}

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


More information about the wp-trac mailing list