WordPress.org

Make WordPress Core

Ticket #43925: 43925.2.diff

File 43925.2.diff, 3.2 KB (added by audrasjb, 2 years ago)

Updated i18n inconsistencies fixes

  • src/wp-admin/includes/file.php

    diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
    index 9f404e3..32448c8 100644
    a b function wp_privacy_generate_personal_data_export_file( $request_id ) { 
    20132013        $request = wp_get_user_request_data( $request_id );
    20142014
    20152015        if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    2016                 wp_send_json_error( __( 'Invalid request ID when generating export file' ) );
     2016                wp_send_json_error( __( 'Invalid request ID when generating export file.' ) );
    20172017        }
    20182018
    20192019        $email_address = $request->email;
    20202020
    20212021        if ( ! is_email( $email_address ) ) {
    2022                 wp_send_json_error( __( 'Invalid email address when generating export file' ) );
     2022                wp_send_json_error( __( 'Invalid email address when generating export file.' ) );
    20232023        }
    20242024
    20252025        // Create the exports folder if needed.
    function wp_privacy_generate_personal_data_export_file( $request_id ) { 
    20372037        if ( ! file_exists( $index_pathname ) ) {
    20382038                $file = fopen( $index_pathname, 'w' );
    20392039                if ( false === $file ) {
    2040                         wp_send_json_error( __( 'Unable to protect export folder from browsing' ) );
     2040                        wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) );
    20412041                }
    20422042                fwrite( $file, 'Silence is golden.' );
    20432043                fclose( $file );
    function wp_privacy_generate_personal_data_export_file( $request_id ) { 
    20512051        $html_report_pathname = $exports_dir . $html_report_filename;
    20522052        $file = fopen( $html_report_pathname, 'w' );
    20532053        if ( false === $file ) {
    2054                 wp_send_json_error( __( 'Unable to open export file (HTML report) for writing' ) );
     2054                wp_send_json_error( __( 'Unable to open export file (HTML report) for writing.' ) );
    20552055        }
    20562056
    20572057        $title = sprintf(
    function wp_privacy_process_personal_data_export_page( $response, $exporter_inde 
    22892289        $request = wp_get_user_request_data( $request_id );
    22902290
    22912291        if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    2292                 wp_send_json_error( __( 'Invalid request ID when merging exporter data' ) );
     2292                wp_send_json_error( __( 'Invalid request ID when merging exporter data.' ) );
    22932293        }
    22942294
    22952295        $export_data = array();
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index 621544e..1d86629 100644
    a b function wp_create_user_request( $email_address = '', $action_name = '', $reques 
    29872987        $action_name   = sanitize_key( $action_name );
    29882988
    29892989        if ( ! is_email( $email_address ) ) {
    2990                 return new WP_Error( 'invalid_email', __( 'Invalid email address' ) );
     2990                return new WP_Error( 'invalid_email', __( 'Invalid email address.' ) );
    29912991        }
    29922992
    29932993        if ( ! $action_name ) {
    2994                 return new WP_Error( 'invalid_action', __( 'Invalid action name' ) );
     2994                return new WP_Error( 'invalid_action', __( 'Invalid action name.' ) );
    29952995        }
    29962996
    29972997        $user    = get_user_by( 'email', $email_address );
  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 4bdd831..9a73c4e 100644
    a b switch ( $action ) { 
    860860
    861861        case 'confirmaction' :
    862862                if ( ! isset( $_GET['request_id'] ) ) {
    863                         wp_die( __( 'Invalid request' ) );
     863                        wp_die( __( 'Invalid request.' ) );
    864864                }
    865865
    866866                $request_id = (int) $_GET['request_id'];