[buddypress-trac] [BuddyPress Trac] #8858: Settings: Export Data page shows wrong information on successful export
buddypress-trac
noreply at wordpress.org
Sat Mar 25 01:16:54 UTC 2023
#8858: Settings: Export Data page shows wrong information on successful export
--------------------------+-----------------------------
Reporter: r-a-y | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Settings | Version: 6.4.0
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
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.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8858>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list