Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (15 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-activity.php

    r4041 r4137  
    3434    global $bp;
    3535
    36     if ( function_exists('bp_activity_delete_by_item_id') ) {
     36    if ( bp_is_active( 'activity' ) ) {
    3737        extract( (array)$args );
    3838        bp_activity_delete_by_item_id( array( 'item_id' => $item_id, 'component' => $bp->friends->id, 'type' => $type, 'user_id' => $user_id, 'secondary_item_id' => $secondary_item_id ) );
Note: See TracChangeset for help on using the changeset viewer.