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-template.php

    r3841 r4137  
    134134                <h5><?php echo bp_core_get_userlink( $user_ids['users'][$i]->user_id ) ?></h5>
    135135
    136                 <?php if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?>
     136                <?php if ( bp_is_active( 'xprofile' ) ) { ?>
    137137
    138138                    <?php $random_data = xprofile_get_random_profile_data( $user_ids['users'][$i]->user_id, true ); ?>
     
    149149                <div class="action">
    150150
    151                     <?php if ( function_exists( 'bp_add_friend_button' ) ) { ?>
     151                    <?php if ( bp_is_active( 'friends' ) ) { ?>
    152152
    153153                        <?php bp_add_friend_button( $user_ids['users'][$i]->user_id ) ?>
Note: See TracChangeset for help on using the changeset viewer.