From f673d1851c739326cbd783d0e3356bb9f06273b9 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sun, 15 Jul 2018 23:38:14 +0000 Subject: [PATCH] Privacy: Silence is golden and invisible. "Be more discrete." declared matt in [3155], and since then, "Silence is Golden" has been the calling card of placeholder index files. Historically, these have been php files, but [43012] changed that and added index.html files for privacy export generated folders. The php silence files produce no visible content. This adds consistency with these new html files in that there will be no visible content. Silence will fall when the question is asked. Fixes #44195. Props audrasjb, rafsuntaskin, Ov3rfly, johnbillion, pento git-svn-id: https://develop.svn.wordpress.org/trunk@43446 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 1373537a07..57d77f4672 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -2037,7 +2037,7 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) { if ( false === $file ) { wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) ); } - fwrite( $file, 'Silence is golden.' ); + fwrite( $file, '' ); fclose( $file ); }