WordPress.org

Make WordPress Core

Ticket #45136: 45136.2.diff

File 45136.2.diff, 639 bytes (added by garrett-eclipse, 4 months ago)

Minor update to adhere to Coding Standards

  • src/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 ) ) {
     6730                return;
     6731        }
    67296732
    6730         $exports_dir  = wp_privacy_exports_dir();
     6733        require_once( ABSPATH . 'wp-admin/includes/file.php' );
    67316734        $export_files = list_files( $exports_dir, 100, array( 'index.html' ) );
    67326735
    67336736        /**