diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 56e91b1f54..2c399e7c43 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -1770,9 +1770,7 @@ function wp_set_comment_status($comment_id, $comment_status, $wp_error = false) case 'approve': case '1': $status = '1'; - if ( get_option('comments_notify') ) { - wp_notify_postauthor( $comment_id ); - } + add_action( 'wp_set_comment_status', 'wp_new_comment_notify_postauthor' ); break; case 'spam': $status = 'spam'; diff --git a/wp-includes/version.php b/wp-includes/version.php index fd116f937c..d0ee4591d5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34536'; +$wp_version = '4.4-alpha-34537'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.