diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index 8eb1c97da5..fa3937c7cb 100644
a
|
b
|
function wp_get_unapproved_comment_author_email() { |
1844 | 1844 | $comment_id = (int) $_GET['unapproved']; |
1845 | 1845 | $comment = get_comment( $comment_id ); |
1846 | 1846 | |
1847 | | if ( $comment && hash_equals( $_GET['moderation-hash'], wp_hash( $comment->comment_date_gmt ) ) ) { |
| 1847 | if ( $comment |
| 1848 | && $_SERVER['REMOTE_ADDR'] === $comment->comment_author_IP |
| 1849 | && hash_equals( $_GET['moderation-hash'], wp_hash( $comment->comment_date_gmt ) ) |
| 1850 | ) { |
1848 | 1851 | $commenter_email = $comment->comment_author_email; |
1849 | 1852 | } |
1850 | 1853 | } |