Make WordPress Core


Ignore:
Timestamp:
04/10/2020 03:00:58 AM (5 years 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:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • 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.