Changeset 2827
- Timestamp:
- 08/30/2005 11:17:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable-functions.php
r2806 r2827 222 222 $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); 223 223 $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); 224 $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID='$post->post_author' LIMIT 1");225 224 226 225 if ('' == $user->user_email) return false; // If there's no email to send the comment to … … 269 268 . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; 270 269 270 $notify_message = apply_filters('comment_notification_text', $notify_message); 271 $subject = apply_filters('comment_notification_subject', $subject); 272 $message_headers = apply_filters('comment_notification_headers', $message_headers); 273 271 274 @wp_mail($user->user_email, $subject, $notify_message, $message_headers); 272 275 … … 306 309 307 310 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title ); 308 $admin_email = get_settings("admin_email"); 311 $admin_email = get_settings('admin_email'); 312 313 $notify_message = apply_filters('comment_moderation_text', $notify_message); 314 $subject = apply_filters('comment_moderation_subject', $subject); 309 315 310 316 @wp_mail($admin_email, $subject, $notify_message);
Note: See TracChangeset
for help on using the changeset viewer.