#6962 closed defect (bug) (fixed)
Profile Cover not working when we define a custom BP_XPROFILE_SLUG
Reported by: | Maniou | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.4.0 |
Component: | Media | Keywords: | has-patch commit |
Cc: |
Description
Hello,
When we define a custom BP_XPROFILE_SLUG for example :
define ( 'BP_XPROFILE_SLUG', 'profil' );
The profil cover is not working because of this condition in /buddypress/bp-core/bp-core-attachments.php line 1036
if ( 'profile' === $current_component ) {
Can we compare with the name of the custom profil slug instead of the hardcoded profile text ?
Thank you !
Attachments (1)
Change History (10)
#1
@
9 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 2.6
- Version changed from 2.5.0 to 2.4.0
This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.
9 years ago
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
9 years ago
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
8 years ago
#7
@
8 years ago
- Owner set to r-a-y
- Resolution set to fixed
- Status changed from new to closed
In 10707:
#9
@
5 years ago
For some strange reason this patch, in BP v5.1.2, has not yet been applied ...
UPDATE:
Sorry, but I did not check well the path of the file. I got confused because I found a 1:1 bug, but in the following file: /buddypress/bp-mebmers/classes/class-bp-members-component.php line 241
I will open a new ticket.
Thanks for the report. I can confirm the issue.
I've attached a patch that should fix this.