Make WordPress Core


Ignore:
Timestamp:
05/02/2018 06:50:49 PM (7 years ago)
Author:
azaozz
Message:

Privacy: fix inconsistencies in new strings.

Props audrasjb.
Merges [43118] to the 4.9 branch.
Fixes #43925.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r43108 r43119  
    18771877
    18781878    if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    1879         wp_send_json_error( __( 'Invalid request ID when generating export file' ) );
     1879        wp_send_json_error( __( 'Invalid request ID when generating export file.' ) );
    18801880    }
    18811881
     
    18831883
    18841884    if ( ! is_email( $email_address ) ) {
    1885         wp_send_json_error( __( 'Invalid email address when generating export file' ) );
     1885        wp_send_json_error( __( 'Invalid email address when generating export file.' ) );
    18861886    }
    18871887
     
    19011901        $file = fopen( $index_pathname, 'w' );
    19021902        if ( false === $file ) {
    1903             wp_send_json_error( __( 'Unable to protect export folder from browsing' ) );
     1903            wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) );
    19041904        }
    19051905        fwrite( $file, 'Silence is golden.' );
     
    19151915    $file = fopen( $html_report_pathname, 'w' );
    19161916    if ( false === $file ) {
    1917         wp_send_json_error( __( 'Unable to open export file (HTML report) for writing' ) );
     1917        wp_send_json_error( __( 'Unable to open export file (HTML report) for writing.' ) );
    19181918    }
    19191919
     
    19581958            'about-1' => array(
    19591959                array(
    1960                     'name'  => __( 'Report generated for' ),
     1960                    'name'  => _x( 'Report generated for', 'email address' ),
    19611961                    'value' => $email_address,
    19621962                ),
    19631963                array(
    1964                     'name'  => __( 'For site' ),
     1964                    'name'  => _x( 'For site', 'website name' ),
    19651965                    'value' => get_bloginfo( 'name' ),
    19661966                ),
    19671967                array(
    1968                     'name'  => __( 'At URL' ),
     1968                    'name'  => _x( 'At URL', 'website URL' ),
    19691969                    'value' => get_bloginfo( 'url' ),
    19701970                ),
    19711971                array(
    1972                     'name'  => __( 'On' ),
     1972                    'name'  => _x( 'On', 'date/time' ),
    19731973                    'value' => current_time( 'mysql' ),
    19741974                ),
     
    21532153
    21542154    if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    2155         wp_send_json_error( __( 'Invalid request ID when merging exporter data' ) );
     2155        wp_send_json_error( __( 'Invalid request ID when merging exporter data.' ) );
    21562156    }
    21572157
Note: See TracChangeset for help on using the changeset viewer.