Changeset 3004
- Timestamp:
- 11/07/05 08:58:37 (3 years ago)
- Files:
-
- trunk/wp-includes/pluggable-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/pluggable-functions.php
r2976 r3004 241 241 242 242 $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); 243 $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); 243 $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = '$comment->comment_post_ID' LIMIT 1"); 244 $user = get_userdata( $post->post_author ); 244 245 245 246 if ('' == $user->user_email) return false; // If there's no email to send the comment to
