Changeset 25104
- Timestamp:
- 08/23/2013 07:35:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r24996 r25104 1075 1075 $message_headers .= $reply_to . "\n"; 1076 1076 1077 $notify_message = apply_filters('comment_notification_text', $notify_message, $comment_id); 1078 $subject = apply_filters('comment_notification_subject', $subject, $comment_id); 1079 $message_headers = apply_filters('comment_notification_headers', $message_headers, $comment_id); 1080 1081 @wp_mail( $author->user_email, $subject, $notify_message, $message_headers ); 1077 $emails = array( $author->user_email ); 1078 1079 $emails = apply_filters( 'comment_notification_recipients', $emails, $comment_id ); 1080 $notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment_id ); 1081 $subject = apply_filters( 'comment_notification_subject', $subject, $comment_id ); 1082 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment_id ); 1083 1084 foreach ( $emails as $email ) { 1085 @wp_mail( $emails, $subject, $notify_message, $message_headers ); 1086 } 1082 1087 1083 1088 return true; … … 1105 1110 $user = get_userdata( $post->post_author ); 1106 1111 // Send to the administration and to the post author if the author can modify the comment. 1107 $email _to= array( get_option('admin_email') );1112 $emails = array( get_option('admin_email') ); 1108 1113 if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) ) 1109 $email _to[] = $user->user_email;1114 $emails[] = $user->user_email; 1110 1115 1111 1116 $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); … … 1157 1162 $message_headers = ''; 1158 1163 1159 $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id); 1160 $subject = apply_filters('comment_moderation_subject', $subject, $comment_id); 1161 $message_headers = apply_filters('comment_moderation_headers', $message_headers); 1162 1163 foreach ( $email_to as $email ) 1164 @wp_mail($email, $subject, $notify_message, $message_headers); 1164 $emails = apply_filters( 'comment_moderation_recipients', $emails, $comment_id ); 1165 $notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id ); 1166 $subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id ); 1167 $message_headers = apply_filters( 'comment_moderation_headers', $message_headers, $comment_id ); 1168 1169 foreach ( $emails as $email ) { 1170 @wp_mail( $email, $subject, $notify_message, $message_headers ); 1171 } 1165 1172 1166 1173 return true;
Note: See TracChangeset
for help on using the changeset viewer.