Changeset 4137 for trunk/bp-members/bp-members-template.php
- Timestamp:
- 03/12/2011 09:25:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-template.php
r4107 r4137 561 561 global $members_template; 562 562 563 if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?>563 if ( bp_is_active( 'xprofile' ) ) { ?> 564 564 <?php $random_data = xprofile_get_random_profile_data( $members_template->member->id, true ); ?> 565 565 <strong><?php echo wp_filter_kses( $random_data[0]->name ) ?></strong> … … 648 648 649 649 // 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&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>'; 654 651 655 652 echo apply_filters( 'bp_logout_nav_link', $logout_link );
Note: See TracChangeset
for help on using the changeset viewer.