diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 2c399e7c43..949453e159 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -1737,7 +1737,7 @@ function wp_new_comment_notify_postauthor( $comment_ID ) { } // Only send notifications for approved comments. - if ( 'spam' === $comment->comment_approved || ! $comment->comment_approved ) { + if ( ! isset( $comment->comment_approved ) || 'spam' === $comment->comment_approved || ! $comment->comment_approved ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 953ecfd9a8..4f5520f3dd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34544'; +$wp_version = '4.4-alpha-34545'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.