mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Missing user line.
git-svn-id: https://develop.svn.wordpress.org/trunk@3004 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
749847dc97
commit
76915903e3
@ -240,7 +240,8 @@ function wp_notify_postauthor($comment_id, $comment_type='') {
|
||||
global $wpdb;
|
||||
|
||||
$comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1");
|
||||
$post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1");
|
||||
$post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = '$comment->comment_post_ID' LIMIT 1");
|
||||
$user = get_userdata( $post->post_author );
|
||||
|
||||
if ('' == $user->user_email) return false; // If there's no email to send the comment to
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user