Changeset 3004 for trunk/wp-includes/pluggable-functions.php
- Timestamp:
- 11/07/2005 08:58:37 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.