Make WordPress Core

Changeset 7918


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

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

File:
1 edited

Legend:

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