Ticket #1698: pluggable-functions.php.diff
File pluggable-functions.php.diff, 1.1 KB (added by , 19 years ago) |
---|
-
pluggable-functions.php
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 224 225 if ('' == $user->user_email) return false; // If there's no email to send the comment to225 $user = new WP_User($post->post_author); 226 226 227 if ('' == $user->data->user_email) return false; // If there's no email to send the comment to 228 227 229 $comment_author_domain = gethostbyaddr($comment->comment_author_IP); 228 230 229 231 $blogname = get_settings('blogname'); … … 271 273 $subject = apply_filters('comment_notification_subject', $subject); 272 274 $message_headers = apply_filters('comment_notification_headers', $message_headers); 273 275 274 @wp_mail($user-> user_email, $subject, $notify_message, $message_headers);276 @wp_mail($user->data->user_email, $subject, $notify_message, $message_headers); 275 277 276 278 return true; 277 279 }