Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/13/2010 04:01:07 PM (14 years ago)
Author:
apeatling
Message:

Replacing function_exists() checks with bp_is_active() checks.

File:
1 edited

Legend:

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

    r2822 r2919  
    132132
    133133        /* Get the fullnames of users so we don't have to query in the loop */
    134         if ( function_exists( 'xprofile_install' ) && $activities ) {
     134        if ( bp_is_active( 'xprofile' ) && $activities ) {
    135135            foreach ( (array)$activities as $activity ) {
    136136                if ( (int)$activity->user_id )
     
    354354        if ( !$comments = wp_cache_get( 'bp_activity_comments_' . $activity_id ) ) {
    355355            /* Select the user's fullname with the query so we don't have to fetch it for each comment */
    356             if ( function_exists( 'xprofile_install' ) ) {
     356            if ( bp_is_active( 'xprofile' ) ) {
    357357                $fullname_select = ", pd.value as user_fullname";
    358358                $fullname_from = ", {$bp->profile->table_name_data} pd ";
Note: See TracChangeset for help on using the changeset viewer.