Changeset 7918

Show
Ignore:
Timestamp:
05/12/08 16:14:55 (6 months ago)
Author:
ryan
Message:

Resurrect comment approval notification. Props chmac. fixes #6892 for 2.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.5/wp-includes/comment.php

    r7715 r7918  
    727727        case 'approve': 
    728728            $query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1"; 
     729            if ( get_option( 'comments_notify' ) == true ) 
     730                wp_notify_postauthor( $comment_id ); 
    729731            break; 
    730732        case 'spam':