WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2020 07:55:51 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Privacy: Rename wp_get_user_request_data() to wp_get_user_request() for clarity; deprecate the old function.

The function returns an instance of the WP_User_Request object itself, not its $request_data property.

Follow-up to [44606].

Props garrett-eclipse.
Fixes #46302.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r47233 r47245  
    47114711    check_ajax_referer( 'wp-privacy-export-personal-data-' . $request_id, 'security' );
    47124712
    4713     // Get the request data.
    4714     $request = wp_get_user_request_data( $request_id );
     4713    // Get the request.
     4714    $request = wp_get_user_request( $request_id );
    47154715
    47164716    if ( ! $request || 'export_personal_data' !== $request->action_name ) {
     
    49024902    check_ajax_referer( 'wp-privacy-erase-personal-data-' . $request_id, 'security' );
    49034903
    4904     // Get the request data.
    4905     $request = wp_get_user_request_data( $request_id );
     4904    // Get the request.
     4905    $request = wp_get_user_request( $request_id );
    49064906
    49074907    if ( ! $request || 'remove_personal_data' !== $request->action_name ) {
Note: See TracChangeset for help on using the changeset viewer.