Skip to:
Content

BuddyPress.org

Changeset 9115


Ignore:
Timestamp:
11/01/2014 07:55:42 PM (10 years ago)
Author:
johnjamesjacoby
Message:

More strict current-user editing checks in BP_Members_Admin->profile_admin_head().

Fixes bug causing "Your Profile" menu item to be selected when "Users" should be. Fixes #5978.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-admin.php

    r9114 r9115  
    478478
    479479        // Is the user attempting to edit their own profile
    480         } else {
     480        } elseif ( isset( $_GET['user_id' ] ) || ( isset( $_GET['page'] ) && ( 'bp-profile-edit' === $_GET['page'] ) ) ) {
    481481            $this->is_self_profile = (bool) ( $this->get_user_id() === $this->current_user_id );
    482482        }
Note: See TracChangeset for help on using the changeset viewer.