WordPress.org

Make WordPress Core

Changeset 37713


Ignore:
Timestamp:
06/15/2016 02:50:38 PM (3 years ago)
Author:
rachelbaker
Message:

Comments: Do not flag a comment as a duplicate if the comment_author_email is provided but not a match.

This reduces the strictness of the duplicate check a little, but does prevent false duplicates for emoji or +1 comments by authors with matching names. The current logic was introduced all the way back in [2894].

Fixes #37093.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r37674 r37713  
    601601    if ( $commentdata['comment_author_email'] ) {
    602602        $dupe .= $wpdb->prepare(
    603             "OR comment_author_email = %s ",
     603            "AND comment_author_email = %s ",
    604604            wp_unslash( $commentdata['comment_author_email'] )
    605605        );
Note: See TracChangeset for help on using the changeset viewer.