From 7cf7767298a0409996adae696a9dd03bf37ddffd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 2 May 2018 18:51:26 +0000 Subject: [PATCH] Privacy: fix inconsistencies in new strings. Props audrasjb. Merges [43118] to the 4.9 branch. Fixes #43925. Built from https://develop.svn.wordpress.org/branches/4.9@43119 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 18 +++++++++--------- wp-admin/includes/user.php | 10 +++++----- wp-admin/privacy.php | 2 +- wp-includes/user.php | 4 ++-- wp-includes/version.php | 2 +- wp-login.php | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index d45c1334eb..dab9372f2d 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1876,13 +1876,13 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { $request = wp_get_user_request_data( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { - wp_send_json_error( __( 'Invalid request ID when generating export file' ) ); + wp_send_json_error( __( 'Invalid request ID when generating export file.' ) ); } $email_address = $request->email; if ( ! is_email( $email_address ) ) { - wp_send_json_error( __( 'Invalid email address when generating export file' ) ); + wp_send_json_error( __( 'Invalid email address when generating export file.' ) ); } // Create the exports folder if needed. @@ -1900,7 +1900,7 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { if ( ! file_exists( $index_pathname ) ) { $file = fopen( $index_pathname, 'w' ); if ( false === $file ) { - wp_send_json_error( __( 'Unable to protect export folder from browsing' ) ); + wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) ); } fwrite( $file, 'Silence is golden.' ); fclose( $file ); @@ -1914,7 +1914,7 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { $html_report_pathname = $exports_dir . $html_report_filename; $file = fopen( $html_report_pathname, 'w' ); if ( false === $file ) { - wp_send_json_error( __( 'Unable to open export file (HTML report) for writing' ) ); + wp_send_json_error( __( 'Unable to open export file (HTML report) for writing.' ) ); } $title = sprintf( @@ -1957,19 +1957,19 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { 'items' => array( 'about-1' => array( array( - 'name' => __( 'Report generated for' ), + 'name' => _x( 'Report generated for', 'email address' ), 'value' => $email_address, ), array( - 'name' => __( 'For site' ), + 'name' => _x( 'For site', 'website name' ), 'value' => get_bloginfo( 'name' ), ), array( - 'name' => __( 'At URL' ), + 'name' => _x( 'At URL', 'website URL' ), 'value' => get_bloginfo( 'url' ), ), array( - 'name' => __( 'On' ), + 'name' => _x( 'On', 'date/time' ), 'value' => current_time( 'mysql' ), ), ), @@ -2152,7 +2152,7 @@ function wp_privacy_process_personal_data_export_page( $response, $exporter_inde $request = wp_get_user_request_data( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { - wp_send_json_error( __( 'Invalid request ID when merging exporter data' ) ); + wp_send_json_error( __( 'Invalid request ID when merging exporter data.' ) ); } $export_data = array(); diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 3acc63429a..20420e3378 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -1311,7 +1311,7 @@ class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { $download_data_markup .= '' . __( 'Download Personal Data' ) . '' . '' . '' . - ''; + ''; $download_data_markup .= ''; @@ -1352,8 +1352,8 @@ class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { ?> - - + + '; @@ -1422,7 +1422,7 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { $remove_data_markup .= '' . __( 'Force Remove Personal Data' ) . '' . '' . - ''; + ''; $remove_data_markup .= ''; @@ -1464,7 +1464,7 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { ?> - + '; diff --git a/wp-admin/privacy.php b/wp-admin/privacy.php index c5e9d8dc77..f7b87236ed 100644 --- a/wp-admin/privacy.php +++ b/wp-admin/privacy.php @@ -195,7 +195,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
- +