WordPress.org

Make WordPress Core

Ticket #45136: #45136.patch

File #45136.patch, 544 bytes (added by arena, 9 months ago)

patch #45136 ... testing exports_dir

  • functions.php

     
    65286528 * @since 4.9.6
    65296529 */
    65306530function wp_privacy_delete_old_export_files() {
    6531         require_once( ABSPATH . 'wp-admin/includes/file.php' );
    65326531
    65336532        $exports_dir  = wp_privacy_exports_dir();
     6533        if ( !is_dir( $exports_dir ) ) return;
     6534
     6535        require_once( ABSPATH . 'wp-admin/includes/file.php' );
    65346536        $export_files = list_files( $exports_dir, 100, array( 'index.html' ) );
    65356537
    65366538        /**