From 0ae6b563b6643ba6e715710aa05eeb9d444f907f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 24 Sep 2020 04:58:27 +0000 Subject: [PATCH] Docs: Add a `@since` note to `wp_privacy_exports_dir` and `wp_privacy_exports_url` filters about exports using relative paths since WordPress 5.5. When changing exports location via these filters, make sure to migrate the files to the new directory, to avoid breaking any existing exports. Follow-up to [48127], [48330]. Props garrett-eclipse. Fixes #51361. git-svn-id: https://develop.svn.wordpress.org/trunk@49042 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 51202a5318..87f3fec895 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -7241,6 +7241,8 @@ function wp_privacy_exports_dir() { * Filters the directory used to store personal data export files. * * @since 4.9.6 + * @since 5.5.0 Exports now use relative paths, so changes to the directory + * via this filter should be reflected on the server. * * @param string $exports_dir Exports directory. */ @@ -7264,6 +7266,8 @@ function wp_privacy_exports_url() { * Filters the URL of the directory used to store personal data export files. * * @since 4.9.6 + * @since 5.5.0 Exports now use relative paths, so changes to the directory URL + * via this filter should be reflected on the server. * * @param string $exports_url Exports directory URL. */