From bb09f56b8818e56b57d003450d9d61794fdd7cbb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 12 May 2008 16:14:15 +0000 Subject: [PATCH] Resurrect comment approval notification. Props chmac. fixes #6892 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7917 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 8792e2650d..852d23207e 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -734,6 +734,8 @@ function wp_set_comment_status($comment_id, $comment_status) { break; case 'approve': $query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id); + if ( get_option( 'comments_notify' ) == true ) + wp_notify_postauthor( $comment_id ); break; case 'spam': $query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);