Changeset 7917

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

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

Files:

Legend:

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

    r7912 r7917  
    735735        case 'approve': 
    736736            $query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id); 
     737            if ( get_option( 'comments_notify' ) == true ) 
     738                wp_notify_postauthor( $comment_id ); 
    737739            break; 
    738740        case 'spam':