Changeset 8005
- Timestamp:
- 05/28/2008 03:42:04 PM (17 years ago)
- Location:
- branches/2.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/comment.php
r7756 r8005 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() ); -
branches/2.5/wp-includes/comment.php
r7918 r8005 727 727 case 'approve': 728 728 $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 ); 729 if ( get_option('comments_notify') ) { 730 $comment = get_comment($comment_id); 731 wp_notify_postauthor($comment_id, $comment->comment_type); 732 } 733 731 734 break; 732 735 case 'spam':
Note: See TracChangeset
for help on using the changeset viewer.