Changeset 8004 for trunk/wp-includes/comment.php
- Timestamp:
- 05/28/2008 03:37:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r7917 r8004 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':
Note: See TracChangeset
for help on using the changeset viewer.