Make WordPress Core

Changeset 7917


Ignore:
Timestamp:
05/12/2008 04:14:15 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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':
Note: See TracChangeset for help on using the changeset viewer.