Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2012 01:37:49 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Profile URL:

  • Add is_admin() check to bp_members_edit_profile_url().
  • Fixes issue with incorrect link in users list table for your own account.
File:
1 edited

Legend:

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

    r6445 r6486  
    6464 */
    6565function bp_members_edit_profile_url( $url, $user_id, $scheme = 'admin' ) {
    66        
     66
    6767        // If xprofile is active, use profile domain link
    68         if ( bp_is_active( 'xprofile' ) ) {
     68        if ( ! is_admin() && bp_is_active( 'xprofile' ) ) {
    6969                $profile_link = trailingslashit( bp_core_get_user_domain( $user_id ) . buddypress()->profile->slug . '/edit' );
    7070
Note: See TracChangeset for help on using the changeset viewer.