mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Resurrect comment approval notification. Props chmac. fixes #6892 for 2.5
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
db8c958df0
commit
ddb46bdf16
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user