[buddypress-trac] [BuddyPress Trac] #6196: Wrong users menu settings in backend
buddypress-trac
noreply at wordpress.org
Sat Feb 7 16:58:22 UTC 2015
#6196: Wrong users menu settings in backend
--------------------------------------+-----------------------------
Reporter: ipm-frommen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General - Administration | Version:
Severity: normal | Keywords: has-patch
--------------------------------------+-----------------------------
The `profile_admin_head` function of the `BP_Members_Admin` class is added
to the dynamic `admin_head-{$hook_suffix}` filter for a few cases. The
problem with this is that it manipulates both the global `$parent_file`
and `$submenu_file` variables, **no matter what**.
This results in the wrong submenu item (i.e., ''Your Profile'') being
highlighted, even if you are on the `users.php` page.
The attached patch fixes this behavior by improving/fixing the mechanism
for setting the `is_self_profile` property. It does that by restricting
the user ID check for the according page only.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6196>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list