From 760ab78ff9b4e84868862acc45262d4f1a4ad911 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 9 May 2018 23:18:22 +0000 Subject: [PATCH] Privacy: Pass export request ID to `wp_privacy_personal_data_export_file_created` filter. Props thomasplevy. Fixes #44031. Built from https://develop.svn.wordpress.org/trunk@43208 git-svn-id: http://core.svn.wordpress.org/trunk@43037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 4bec958b25..9a89114675 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2168,8 +2168,9 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { * @param string $archive_pathname The full path to the export file on the filesystem. * @param string $archive_url The URL of the archive file. * @param string $html_report_pathname The full path to the personal data report on the filesystem. + * @param string $request_id The export request ID. */ - do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname ); + do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id ); } } else { $error = __( 'Unable to open export file (archive) for writing.' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 54a2465c9f..a44226931a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43206'; +$wp_version = '5.0-alpha-43208'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.