From 3a43a64c20910dee8bb17b27a98e5ec2b8400e37 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 2 May 2018 18:42:21 +0000 Subject: [PATCH] Privacy: fix inconsistencies in new strings. Props audrasjb. Fixes #43925. Built from https://develop.svn.wordpress.org/trunk@43118 git-svn-id: http://core.svn.wordpress.org/trunk@42947 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 9f404e3012..6f93dfa8d3 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2013,13 +2013,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. @@ -2037,7 +2037,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 ); @@ -2051,7 +2051,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( @@ -2094,19 +2094,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' ), ), ), @@ -2289,7 +2289,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 939ad167bd..5898bcdd01 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -1352,7 +1352,7 @@ class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { $download_data_markup .= '' . __( 'Download Personal Data' ) . '' . '' . '' . - ''; + ''; $download_data_markup .= ''; @@ -1393,8 +1393,8 @@ class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { ?> - - + + '; @@ -1463,7 +1463,7 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { $remove_data_markup .= '' . __( 'Force Remove Personal Data' ) . '' . '' . - ''; + ''; $remove_data_markup .= ''; @@ -1505,7 +1505,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 e16db91fb7..1d17f0f5f0 100644 --- a/wp-admin/privacy.php +++ b/wp-admin/privacy.php @@ -201,7 +201,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
- +