WordPress.org

Make WordPress Core

Changeset 30547


Ignore:
Timestamp:
11/24/2014 10:50:38 AM (4 years ago)
Author:
westi
Message:

Fix the passing of commenter cookie data to the comment API so that we don't try and fetch all unapproved comments for users with no-email address when we only have an author.

Fixes #19623

File:
1 edited

Legend:

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

    r30538 r30547  
    11611161    if ( $user_ID ) {
    11621162        $comment_args['include_unapproved'] = array( $user_ID );
    1163     } else if ( ! empty( $comment_author ) ) {
     1163    } else if ( ! empty( $comment_author_email ) ) {
    11641164        $comment_args['include_unapproved'] = array( $comment_author_email );
    11651165    }
Note: See TracChangeset for help on using the changeset viewer.