Ticket #44084: 44084.diff
File 44084.diff, 798 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/includes/file.php
2050 2050 wp_send_json_error( __( 'Unable to open export file (HTML report) for writing.' ) ); 2051 2051 } 2052 2052 2053 if ( ! empty( $request->user_id ) ) { 2054 $locale = get_user_locale( $request->user_id ); 2055 } else { 2056 $locale = get_locale(); 2057 } 2058 2059 $switched_locale = switch_to_locale( $locale ); 2060 2053 2061 $title = sprintf( 2054 2062 /* translators: %s: user's e-mail address */ 2055 2063 __( 'Personal Data Export for %s' ), … … 2124 2132 fwrite( $file, "</html>\n" ); 2125 2133 fclose( $file ); 2126 2134 2135 if ( $switched_locale ) { 2136 restore_previous_locale(); 2137 } 2138 2127 2139 /* 2128 2140 * Now, generate the ZIP. 2129 2141 *