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]. Props garrett-eclipse, johnjamesjacoby, r-a-y, Dono12. Fixes #49802. git-svn-id: https://develop.svn.wordpress.org/trunk@47555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b5d78f82f
commit
adda585fb8
@ -1564,18 +1564,3 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Data_Removal_Req
|
||||
function _wp_privacy_requests_screen_options() {
|
||||
_deprecated_function( __FUNCTION__, '5.3.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the user request object for the specified request ID.
|
||||
*
|
||||
* @since 4.9.6
|
||||
* @deprecated 5.4.0 Use wp_get_user_request()
|
||||
* @see wp_get_user_request()
|
||||
*
|
||||
* @param int $request_id The ID of the user request.
|
||||
* @return WP_User_Request|false
|
||||
*/
|
||||
function wp_get_user_request_data( $request_id ) {
|
||||
_deprecated_function( __FUNCTION__, '5.4.0', 'wp_get_user_request()' );
|
||||
return wp_get_user_request( $request_id );
|
||||
}
|
@ -3951,6 +3951,21 @@ function wp_ajax_press_this_add_category() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the user request object for the specified request ID.
|
||||
*
|
||||
* @since 4.9.6
|
||||
* @deprecated 5.4.0 Use wp_get_user_request()
|
||||
* @see wp_get_user_request()
|
||||
*
|
||||
* @param int $request_id The ID of the user request.
|
||||
* @return WP_User_Request|false
|
||||
*/
|
||||
function wp_get_user_request_data( $request_id ) {
|
||||
_deprecated_function( __FUNCTION__, '5.4.0', 'wp_get_user_request()' );
|
||||
return wp_get_user_request( $request_id );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters 'img' elements in post content to add 'srcset' and 'sizes' attributes.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user