WordPress.org

Make WordPress Core

Ticket #49802: 49802.diff

File 49802.diff, 1.6 KB (added by garrett-eclipse, 4 months ago)

Migrate the wp_get_user_request_data deprecation from wp-admin/includes/deprecated.php to wp-includes/deprecated.php

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

     
    15631563 */
    15641564function _wp_privacy_requests_screen_options() {
    15651565        _deprecated_function( __FUNCTION__, '5.3.0' );
    1566 }
    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 );
    15811566}
    1582  No newline at end of file
  • src/wp-includes/deprecated.php

     
    39503950                wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) );
    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}
     3968 No newline at end of file