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. Built from https://develop.svn.wordpress.org/trunk@47555 git-svn-id: http://core.svn.wordpress.org/trunk@47330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e38f8ed26
commit
c18e44d6b1
|
@ -1564,18 +1564,3 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Data_Removal_Req
|
||||||
function _wp_privacy_requests_screen_options() {
|
function _wp_privacy_requests_screen_options() {
|
||||||
_deprecated_function( __FUNCTION__, '5.3.0' );
|
_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.
|
* Filters 'img' elements in post content to add 'srcset' and 'sizes' attributes.
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-47554';
|
$wp_version = '5.5-alpha-47555';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue