Changeset 43119 for branches/4.9/src/wp-admin/includes/file.php
- Timestamp:
- 05/02/2018 06:50:49 PM (7 years ago)
- 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 1877 1877 1878 1878 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.' ) ); 1880 1880 } 1881 1881 … … 1883 1883 1884 1884 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.' ) ); 1886 1886 } 1887 1887 … … 1901 1901 $file = fopen( $index_pathname, 'w' ); 1902 1902 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.' ) ); 1904 1904 } 1905 1905 fwrite( $file, 'Silence is golden.' ); … … 1915 1915 $file = fopen( $html_report_pathname, 'w' ); 1916 1916 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.' ) ); 1918 1918 } 1919 1919 … … 1958 1958 'about-1' => array( 1959 1959 array( 1960 'name' => _ _( 'Report generated for' ),1960 'name' => _x( 'Report generated for', 'email address' ), 1961 1961 'value' => $email_address, 1962 1962 ), 1963 1963 array( 1964 'name' => _ _( 'For site' ),1964 'name' => _x( 'For site', 'website name' ), 1965 1965 'value' => get_bloginfo( 'name' ), 1966 1966 ), 1967 1967 array( 1968 'name' => _ _( 'AtURL' ),1968 'name' => _x( 'At URL', 'website URL' ), 1969 1969 'value' => get_bloginfo( 'url' ), 1970 1970 ), 1971 1971 array( 1972 'name' => _ _( 'On' ),1972 'name' => _x( 'On', 'date/time' ), 1973 1973 'value' => current_time( 'mysql' ), 1974 1974 ), … … 2153 2153 2154 2154 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.' ) ); 2156 2156 } 2157 2157
Note: See TracChangeset
for help on using the changeset viewer.