#7691 closed defect (bug) (fixed)
At User's front Page Edit your bio link leads to current admin user backend profile
Reported by: | vapvarun | Owned by: | hnla |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | has-screenshots |
Cc: |
Description
It should link to displayed user backend profile or we can simply hide it from the displayed user's front page.
https://screencast-o-matic.com/screenshots/u/f0ik/1518207358488-82448.png
Change History (4)
#2
@
7 years ago
@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.
to replicate it, Please make sure you have enabled BP Nouveau