WordPress.org

Make WordPress Core

Changeset 47567


Ignore:
Timestamp:
04/10/2020 03:00:58 AM (4 months ago)
Author:
whyisjake
Message:

Privacy: Make the deprecated wp_get_user_request_data() function available on front end.

Previously, it was accidentally made available only in admin context.

Follow-up to [44606], [47245].
Brings [47555] to the 5.4 branch.

Props garrett-eclipse, johnjamesjacoby, r-a-y, Dono12.

Fixes #49802.

Location:
branches/5.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-admin/includes/deprecated.php

    r47245 r47567  
    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  */
    1578 function 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 }
  • branches/5.4/src/wp-includes/deprecated.php

    r47198 r47567  
    39513951    }
    39523952}
     3953
     3954/**
     3955 * Return the user request object for the specified request ID.
     3956 *
     3957 * @since 4.9.6
     3958 * @deprecated 5.4.0 Use wp_get_user_request()
     3959 * @see wp_get_user_request()
     3960 *
     3961 * @param int $request_id The ID of the user request.
     3962 * @return WP_User_Request|false
     3963 */
     3964function wp_get_user_request_data( $request_id ) {
     3965    _deprecated_function( __FUNCTION__, '5.4.0', 'wp_get_user_request()' );
     3966    return wp_get_user_request( $request_id );
     3967}
Note: See TracChangeset for help on using the changeset viewer.