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 git-svn-id: https://develop.svn.wordpress.org/trunk@30547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a22e8b5354
commit
7e349ec5c4
@ -1160,7 +1160,7 @@ function comments_template( $file = '/comments.php', $separate_comments = false
|
|||||||
|
|
||||||
if ( $user_ID ) {
|
if ( $user_ID ) {
|
||||||
$comment_args['include_unapproved'] = array( $user_ID );
|
$comment_args['include_unapproved'] = array( $user_ID );
|
||||||
} else if ( ! empty( $comment_author ) ) {
|
} else if ( ! empty( $comment_author_email ) ) {
|
||||||
$comment_args['include_unapproved'] = array( $comment_author_email );
|
$comment_args['include_unapproved'] = array( $comment_author_email );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user