Ticket #6892: 6892.diff
| File 6892.diff, 1.3 KB (added by , 18 years ago) |
|---|
-
wp-includes/comment.php
734 734 break; 735 735 case 'approve': 736 736 $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 ); 737 if ( get_option('comments_notify') ) { 738 $comment = get_comment($comment_id); 739 wp_notify_postauthor($comment_id, $comment->comment_type); 740 } 739 741 break; 740 742 case 'spam': 741 743 $query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id); -
wp-admin/comment.php
193 193 194 194 wp_set_comment_status( $comment->comment_ID, 'approve' ); 195 195 196 if ( true == get_option('comments_notify') )197 wp_notify_postauthor( $comment->comment_ID );198 199 200 196 if ( '' != wp_get_referer() && false == $noredir ) 201 197 wp_redirect( wp_get_referer() ); 202 198 else … … 229 225 230 226 include('admin-footer.php'); 231 227 232 ?> 233 No newline at end of file 228 ?>