diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index 4535684..935c12f 100644
|
a
|
b
|
function wp_privacy_generate_personal_data_export_file( $request_id ) {
|
| 2031 | 2031 | } |
| 2032 | 2032 | |
| 2033 | 2033 | // Protect export folder from browsing. |
| 2034 | | $index_pathname = $exports_dir . 'index.html'; |
| | 2034 | $index_pathname = $exports_dir . 'index.php'; |
| 2035 | 2035 | if ( ! file_exists( $index_pathname ) ) { |
| 2036 | 2036 | $file = fopen( $index_pathname, 'w' ); |
| 2037 | 2037 | if ( false === $file ) { |
| 2038 | 2038 | wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) ); |
| 2039 | 2039 | } |
| 2040 | | fwrite( $file, 'Silence is golden.' ); |
| | 2040 | fwrite( $file, "<?php \n"); |
| | 2041 | fwrite( $file, "// Silence is golden." ); |
| 2041 | 2042 | fclose( $file ); |
| 2042 | 2043 | } |
| 2043 | 2044 | |