Make WordPress Core


Ignore:
Timestamp:
02/10/2020 07:55:51 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Rename wp_get_user_request_data() to wp_get_user_request() for clarity; deprecate the old function.

The function returns an instance of the WP_User_Request object itself, not its $request_data property.

Follow-up to [44606].

Props garrett-eclipse.
Fixes #46302.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php

    r47146 r47245  
    259259
    260260        $report_contents = file_get_contents( $report_dir . 'index.html' );
    261         $request         = wp_get_user_request_data( self::$export_request_id );
     261        $request         = wp_get_user_request( self::$export_request_id );
    262262
    263263        $this->assertContains( '<h1>Personal Data Export</h1>', $report_contents );
     
    286286        $zip->close();
    287287
    288         $request = wp_get_user_request_data( self::$export_request_id );
     288        $request = wp_get_user_request( self::$export_request_id );
    289289
    290290        $this->assertTrue( file_exists( $report_dir . 'export.json' ) );
Note: See TracChangeset for help on using the changeset viewer.