Skip to content

Commit

Permalink
Resurrect comment approval notification. Props chmac. fixes #6892 for…
Browse files Browse the repository at this point in the history
… 2.5

git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7918 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryanboren committed May 12, 2008
1 parent db8c958 commit ddb46bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-includes/comment.php
Expand Up @@ -726,6 +726,8 @@ function wp_set_comment_status($comment_id, $comment_status) {
break;
case 'approve':
$query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
if ( get_option( 'comments_notify' ) == true )
wp_notify_postauthor( $comment_id );
break;
case 'spam':
$query = "UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";
Expand Down

0 comments on commit ddb46bd

Please sign in to comment.