diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 647e0db2d0..a1af5dbbcc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -6281,6 +6281,8 @@ function wp_schedule_delete_old_privacy_export_files() { * @since 4.9.6 */ function wp_privacy_delete_old_export_files() { + require_once( ABSPATH . 'wp-admin/includes/file.php' ); + $upload_dir = wp_upload_dir(); $exports_dir = trailingslashit( $upload_dir['basedir'] . '/exports' ); $export_files = list_files( $exports_dir, 100, array( 'index.html' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5861d95403..81d669d00f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43058'; +$wp_version = '5.0-alpha-43059'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.