Changeset 3209
- Timestamp:
- 08/21/2010 04:59:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-blogs.php
r3192 r3209 457 457 return false; 458 458 459 // Don't record activity if no email address has been included 460 if ( empty( $recorded_comment->comment_author_email ) ) 461 return false; 462 463 // Get the user_id from the comment author email. 464 $user = get_user_by_email( $recorded_comment->comment_author_email ); 465 $user_id = (int)$user->ID; 466 467 // If there's no registered user id, don't record activity 468 if ( empty( $user_id ) ) 469 return false; 470 459 471 // Get blog and post data 460 472 $blog_id = (int)$wpdb->blogid; 461 473 $recorded_comment->post = get_post( $recorded_comment->comment_post_ID ); 462 463 // Get the user_id from the comment author email.464 $user = get_user_by_email( $recorded_comment->comment_author_email );465 $user_id = (int)$user->ID;466 467 // If there's no registered user id, don't record activity468 if ( empty( $user_id ) )469 return false;470 474 471 475 // If this is a password protected post, don't record the comment
Note: See TracChangeset
for help on using the changeset viewer.