WordPress.org

Make WordPress Core

Ticket #45136: #45136_v2.patch

File #45136_v2.patch, 622 bytes (added by arena, 7 months ago)

patch as required

  • wp-includes/functions.php

     
    67256725 * @since 4.9.6
    67266726 */
    67276727function wp_privacy_delete_old_export_files() {
    6728         require_once( ABSPATH . 'wp-admin/includes/file.php' );
     6728        $exports_dir  = wp_privacy_exports_dir();
     6729        if ( !is_dir( $exports_dir ) ) return;
    67296730
    6730         $exports_dir  = wp_privacy_exports_dir();
     6731        require_once( ABSPATH . 'wp-admin/includes/file.php' );
    67316732        $export_files = list_files( $exports_dir, 100, array( 'index.html' ) );
    67326733
    67336734        /**