From 691dc59ad3ad89702ec01e457d77cc0dcd24a003 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sun, 15 Jul 2018 23:39:27 +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 Built from https://develop.svn.wordpress.org/trunk@43446 git-svn-id: http://core.svn.wordpress.org/trunk@43273 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 1373537a07..57d77f4672 100644 --- a/wp-admin/includes/file.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 58a7ab30ae..2f7d460fef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43441'; +$wp_version = '5.0-alpha-43446'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.