From b1330814e2acbda177cc2b2bb8c2140df90b9e73 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 17 Jul 2018 13:53:25 +0000 Subject: [PATCH] Privacy: Add `$request` to `$email_data` to make it available to all filters. Props desrosj. Fixes #44379. Built from https://develop.svn.wordpress.org/trunk@43477 git-svn-id: http://core.svn.wordpress.org/trunk@43304 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 5aec553461..4ebcf822a9 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -3368,6 +3368,7 @@ function wp_send_user_request( $request_id ) { } $email_data = array( + 'request' => $request, 'email' => $request->email, 'description' => wp_user_request_action_description( $request->action_name ), 'confirm_url' => add_query_arg( array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 67635e846c..9bf4f210fe 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43475'; +$wp_version = '5.0-alpha-43477'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.