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/deprecated.php

    r47198 r47245  
    15651565    _deprecated_function( __FUNCTION__, '5.3.0' );
    15661566}
     1567
     1568/**
     1569 * Return the user request object for the specified request ID.
     1570 *
     1571 * @since 4.9.6
     1572 * @deprecated 5.4.0 Use wp_get_user_request()
     1573 * @see wp_get_user_request()
     1574 *
     1575 * @param int $request_id The ID of the user request.
     1576 * @return WP_User_Request|false
     1577 */
     1578function wp_get_user_request_data( $request_id ) {
     1579    _deprecated_function( __FUNCTION__, '5.4.0', 'wp_get_user_request()' );
     1580    return wp_get_user_request( $request_id );
     1581}
Note: See TracChangeset for help on using the changeset viewer.