Changeset 50037 for trunk/src/wp-admin/includes/privacy-tools.php
- Timestamp:
- 01/27/2021 11:45:29 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/privacy-tools.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/privacy-tools.php
r49970 r50037 323 323 324 324 // Protect export folder from browsing. 325 $index_pathname = $exports_dir . 'index. html';325 $index_pathname = $exports_dir . 'index.php'; 326 326 if ( ! file_exists( $index_pathname ) ) { 327 327 $file = fopen( $index_pathname, 'w' ); … … 329 329 wp_send_json_error( __( 'Unable to protect personal data export folder from browsing.' ) ); 330 330 } 331 fwrite( $file, '< !-- Silence is golden. -->' );331 fwrite( $file, '<?php // Silence is golden.' ); 332 332 fclose( $file ); 333 333 }
Note: See TracChangeset
for help on using the changeset viewer.