Skip to:
Content

BuddyPress.org


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

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

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

    r4107 r4137  
    561561    global $members_template;
    562562
    563     if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?>
     563    if ( bp_is_active( 'xprofile' ) ) { ?>
    564564        <?php $random_data = xprofile_get_random_profile_data( $members_template->member->id, true ); ?>
    565565            <strong><?php echo wp_filter_kses( $random_data[0]->name ) ?></strong>
     
    648648
    649649    // Always add a log out list item to the end of the navigation
    650     if ( function_exists( 'wp_logout_url' ) )
    651         $logout_link = '<li><a id="wp-logout" href="' .  wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    652     else
    653         $logout_link = '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     650    $logout_link = '<li><a id="wp-logout" href="' .  wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    654651
    655652    echo apply_filters( 'bp_logout_nav_link', $logout_link );
Note: See TracChangeset for help on using the changeset viewer.