Make WordPress Core

Ticket #44195: 44195.4.diff

File 44195.4.diff, 509 bytes (added by audrasjb, 8 years ago)

replace HTML text with HTML comment to avoid to display anything.

  • src/wp-admin/includes/file.php

    diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
    index 4535684..c2b2a78 100644
    a b function wp_privacy_generate_personal_data_export_file( $request_id ) {  
    20372037                if ( false === $file ) {
    20382038                        wp_send_json_error( __( 'Unable to protect export folder from browsing.' ) );
    20392039                }
    2040                 fwrite( $file, 'Silence is golden.' );
     2040                fwrite( $file, '<!-- Silence is golden. -->' );
    20412041                fclose( $file );
    20422042        }
    20432043