Changeset 50038 for branches/5.6/src/wp-admin/includes/privacy-tools.php
- Timestamp:
- 01/27/2021 11:47:43 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-admin/includes/privacy-tools.php
r49539 r50038 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 user privacy 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.