From 359601b720598ebf6989810b4c4e11da3c9ab303 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 12 May 2008 16:14:15 +0000 Subject: [PATCH] Resurrect comment approval notification. Props chmac. fixes #6892 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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);