Opened 21 months ago
Closed 19 months ago
#8858 closed defect (bug) (fixed)
Settings: Export Data page shows wrong information on successful export
Reported by: | r-a-y | Owned by: | imath |
---|---|---|---|
Milestone: | 11.2.0 | Priority: | normal |
Severity: | normal | Version: | 6.4.0 |
Component: | Settings | Keywords: | has-patch commit |
Cc: |
Description
Long time no see!
Was testing the Export Data page just now and found that our Export Data functions return wrong information since WordPress 5.5.
If you go to your profile's "Settings > Export Data" page and request a data export. After a site admin approves your request, navigate back to your "Settings > Export Data" page and you will see a "Your previous request for an export of personal data has expired" message. This message is wrong.
The problem is with our bp_settings_get_personal_data_export_url()
and bp_settings_personal_data_export_exists()
functions. These functions are using the '_export_file_path'
post meta. This post meta was deprecated back in WordPress 5.5 in favor for the new '_export_file_name'
meta entry: https://github.com/WordPress/WordPress/blob/1764cee3d1a7772992d04222dfcbd18084754eb6/wp-admin/includes/privacy-tools.php#L506-L510
I've updated our functions to use the newer meta entry.
Attachments (1)
Change History (6)
#2
@
20 months ago
- Milestone changed from 12.0.0 to 11.2.0
As we're taking more time for 12.0, let's have this fixed earlier.
This ticket was mentioned in PR #97 on buddypress/buddypress by @imath.
19 months ago
#3
Make sure a link to download personal data is available into front end Members Single Item data screen.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8858
Hi @r-a-y !
Great to see you. Thanks a lot for your catch & patch, it’s looking great. Feel free to commit it.