#8156 closed enhancement (fixed)
Move the Local Avatar and Cover Image features into the Members component.
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 6.0.0 | Priority: | high |
Severity: | normal | Version: | 1.0 |
Component: | Members | Keywords: | has-patch commit needs-dev-note |
Cc: |
Description
The team have been discussing a lot about the fact local avatars and cover images for users should be Members features instead of xProfile features.
The consensus is: it makes more sense to include these features into the Members component.
I've been looking at it lately and unlike what I was thinking there's are no template changes needed to make this happen. So that's good news!
The most important part of the attached patch is about how to manage the navigation items. I'm suggesting to keep how the navigation is built when the xProfile is active so that users feel nothing has changed.
When the xProfile is not active, the navigation items for the 2 features will be attached to the wp-profile
fallback profile we already use.
There are a lot of changes under the hood! But I've tried to deprecate the less functions I could to limit possible risks with plugins hooking to xProfile actions or filters about avatars or cover images.
I'd really like if we could commit the changes asap so that we can inform about them early during the 6.0.0 development cycle.
Thanks in advance for your time reviewing the patch.
Attachments (5)
Change History (24)
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
5 years ago
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
5 years ago
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
5 years ago
#6
@
5 years ago
- Keywords commit needs-dev-note added; dev-feedback needs-refresh removed
.3.patch is a refreshed version of .2.patch which also include deprecated filters for the dynamic ones I've missed in .2.patch. I believe the patch is ready to be committed. I will try to process in consistent steps instead of a unique commit.
I've tested everything once more :
- Legacy xProfile inactive
- Legacy xProfile active
- Nouveau xProfile inactive
- Nouveau xProfile active.
Green lights for all these tests.
#14
@
5 years ago
- Owner set to imath
- Resolution set to fixed
- Status changed from new to closed
In 12560:
#15
@
5 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
There's a missing step: we should make sure using bp_is_active( 'xprofile', 'cover_image' )
returns bp_is_active( 'members', 'cover_image' )
and inform this is no more the right way to check if the cover image is active.
Now that [12488] has been committed, 8156.2.patch has been updated to make sure I'm not forgetting to move back the Member Avatar REST Controller inside the BP Members Component.