Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2011 08:50:26 PM (13 years ago)
Author:
djpaul
Message:

Swap some more function_exists calls to bp_is_active. See #2718

File:
1 edited

Legend:

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

    r3985 r4041  
    293293            switch ( $scope ) {
    294294                case 'friends':
    295                     if ( function_exists( 'friends_get_friend_user_ids' ) )
     295                    if ( bp_is_active( 'friends' ) )
    296296                        $friends = friends_get_friend_user_ids( $user_id );
    297297                        if ( empty( $friends ) )
     
    301301                    break;
    302302                case 'groups':
    303                     if ( function_exists( 'groups_get_user_groups' ) ) {
     303                    if ( bp_is_active( 'groups' ) ) {
    304304                        $groups = groups_get_user_groups( $user_id );
    305305                        if ( empty( $groups['groups'] ) )
Note: See TracChangeset for help on using the changeset viewer.