[buddypress-trac] [BuddyPress Trac] #7691: At User's front Page Edit your bio link leads to current admin user backend profile
buddypress-trac
noreply at wordpress.org
Sat Feb 10 10:57:55 UTC 2018
#7691: At User's front Page Edit your bio link leads to current admin user backend
profile
-----------------------------+------------------------------
Reporter: vapvarun | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-screenshots |
-----------------------------+------------------------------
Comment (by hnla):
@vapvarun Thanks for moving the ticket over from github.
Looking at this further it seems there is an issue possibly with WP here
as the link always seems to resolve to the WP current logged in user
regardless of the ID that is passed to the WP `get_edit_profile_url()`
function, in our case the `bp_displayed_user_id()` even passing a
hardcoded int representing the correct displayed user results in resolving
to the admin or bp_moderate user.
The simplest way to resolve this it to remove the check for bp_moderate in
the `default-front.php` template, it's a convenience link that really
isn't that useful or necessary, admins may navigate to the backend if they
really need to edit a users profile.
So the link now will only appear if this is ` bp_is_my_profile()`
I'm closing this ticket on that basis, however if you feel this is not the
best resolution please re-open.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7691#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list