WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2020 07:55:51 PM (9 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/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php

    r46586 r47245  
    153153
    154154    /**
    155      * Filter callback that modifies the recipient of the data request confirmation notification.
     155     * Filter callback that modifies the recipient of the user request confirmation notification.
    156156     *
    157157     * @since 4.9.8
    158158     *
    159159     * @param string          $admin_email  The email address of the notification recipient.
    160      * @param WP_User_Request $request_data The request that is initiating the notification.
     160     * @param WP_User_Request $request The request that is initiating the notification.
    161161     * @return string Admin email address.
    162162     */
    163     public function modify_email_address( $admin_email, $request_data ) {
    164         $admin_email = $request_data->email;
     163    public function modify_email_address( $admin_email, $request ) {
     164        $admin_email = $request->email;
    165165        return $admin_email;
    166166    }
Note: See TracChangeset for help on using the changeset viewer.