mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-31 22:20:29 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -258,7 +258,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC
|
||||
$this->assertTrue( file_exists( $report_dir . 'index.html' ) );
|
||||
|
||||
$report_contents = file_get_contents( $report_dir . 'index.html' );
|
||||
$request = wp_get_user_request_data( self::$export_request_id );
|
||||
$request = wp_get_user_request( self::$export_request_id );
|
||||
|
||||
$this->assertContains( '<h1>Personal Data Export</h1>', $report_contents );
|
||||
$this->assertContains( '<h2>About</h2>', $report_contents );
|
||||
@@ -285,7 +285,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC
|
||||
$zip->extractTo( $report_dir );
|
||||
$zip->close();
|
||||
|
||||
$request = wp_get_user_request_data( self::$export_request_id );
|
||||
$request = wp_get_user_request( self::$export_request_id );
|
||||
|
||||
$this->assertTrue( file_exists( $report_dir . 'export.json' ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user