diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 7dafa1eaef..c6dd33d911 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1802,7 +1802,7 @@ function wp_new_comment_notify_postauthor( $comment_ID ) { } // Only send notifications for approved comments. - if ( ! isset( $comment->comment_approved ) || 'spam' === $comment->comment_approved || ! $comment->comment_approved ) { + if ( ! isset( $comment->comment_approved ) || '1' != $comment->comment_approved ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 03c4517baa..6031a3a021 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36117'; +$wp_version = '4.5-alpha-36119'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.