Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/16/2011 01:30:08 PM (8 years ago)
Author:
djpaul
Message:

Fix php notice when marking comment as spam

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/bp-blogs/bp-blogs-functions.php

    r5233 r5248  
    392392
    393393    // Delete activity stream item
    394     bp_blogs_delete_activity( array( 'item_id' => $wpdb->blogid , 'secondary_item_id' => $comment_id, 'type' => 'new_blog_comment' ) );
    395 
    396     do_action( 'bp_blogs_remove_comment', $blog_id, $comment_id, $bp->loggedin_user->id );
     394    bp_blogs_delete_activity( array( 'item_id' => $wpdb->blogid, 'secondary_item_id' => $comment_id, 'type' => 'new_blog_comment' ) );
     395
     396    do_action( 'bp_blogs_remove_comment', $wpdb->blogid, $comment_id, $bp->loggedin_user->id );
    397397}
    398398add_action( 'delete_comment', 'bp_blogs_remove_comment' );
Note: See TracChangeset for help on using the changeset viewer.