Make WordPress Core


Ignore:
Timestamp:
10/04/2020 03:21:38 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Improve clarity of privacy error strings.

Primarily this adds "user privacy" to the strings for privacy requests, so they are more easily distinguished from other system actions within logs.

Props garrett-eclipse, carike, birgire.
Fixes #51351.

File:
1 edited

Legend:

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

    r48996 r49090  
    165165
    166166                $this->expectException( 'WPDieException' );
    167                 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating export file."}' );
     167                $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' );
    168168                wp_privacy_generate_personal_data_export_file( $request_id );
    169169        }
    … …  
    176176        public function test_invalid_request_id() {
    177177                $this->expectException( 'WPDieException' );
    178                 $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating export file."}' );
     178                $this->expectOutputString( '{"success":false,"data":"Invalid request ID when generating user privacy export file."}' );
    179179                wp_privacy_generate_personal_data_export_file( 123456789 );
    180180        }
    … …  
    196196
    197197                $this->expectException( 'WPDieException' );
    198                 $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating export file."}' );
     198                $this->expectOutputString( '{"success":false,"data":"Invalid email address when generating user privacy export file."}' );
    199199                wp_privacy_generate_personal_data_export_file( $request_id );
    200200        }
    … …  
    210210
    211211                $this->expectException( 'WPDieException' );
    212                 $this->expectOutputString( '{"success":false,"data":"Unable to create export folder."}' );
     212                $this->expectOutputString( '{"success":false,"data":"Unable to create user privacy export folder."}' );
    213213                wp_privacy_generate_personal_data_export_file( self::$export_request_id );
    214214        }
Note: See TracChangeset for help on using the changeset viewer.