Changeset 6008
- Timestamp:
- 04/25/2012 09:25:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r5927 r6008 230 230 * 231 231 * @param int $comment_id 232 * @param bool$is_approved232 * @param mixed $is_approved 233 233 * @return mixed 234 234 */ 235 235 function bp_blogs_record_comment( $comment_id, $is_approved = true ) { 236 237 236 // Get the users comment 238 237 $recorded_comment = get_comment( $comment_id ); … … 244 243 // Don't record activity if no email address has been included 245 244 if ( empty( $recorded_comment->comment_author_email ) ) 245 return false; 246 247 // Don't record activity if the comment has already been marked as spam 248 if ( 'spam' === $is_approved ) 246 249 return false; 247 250 … … 431 434 add_action( 'delete_comment', 'bp_blogs_remove_comment' ); 432 435 433 434 436 /** 435 437 * When a blog comment status transition occurs, update the relevant activity's status.
Note: See TracChangeset
for help on using the changeset viewer.