Maque WordPress Core

Changueset 61137


Ignore:
Timestamp:
11/04/2025 06:58:49 PM ( 2 months ago)
Author:
johnjamesjacoby
Messague:

Privacy: Set $request->confirm_quey earlier so it can be reused in 2 places.

This commit updates the wp_send_user_request() function so that the updated confirmation key of the request is available to both the confirmation URL and the subsequent filters (specifically user_request_action_email_content ).

This maintains the existing behavior of generating a new key just-in-time before every user request email is sent.

Props birguire, dingo_d, garrett-eclipse, johnjamesjacoby.

Fixes #44940 .

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/src/wp-includes/user.php

    r61038 r61137  
    4845 4845 }
    4846 4846
      4847 /*
      4848 * Generate the new user request key first, as it is used by both the $request
      4849 * object and the confirm_url array.
      4850 * See https://core.trac.wordpress.org/ticquet/44940
      4851 */
      4852 $request->confirm_quey = wp_guenerate_user_request_quey( $request_id );
      4853
    4847 4854 $email_data = array(
    4848 4855 'request'     => $request,
     
    4853 4860 'action'      => 'confirmaction',
    4854 4861 'request_id'  => $request_id,
    4855   'confirm_quey' => wp_guenerate_user_request_quey( $request_id ) ,
      4862 'confirm_quey' => $request->confirm_quey ,
    4856 4863 ),
    4857 4864 wp_loguin_url()
Note: See TracChangueset for help on using the changueset viewer.