diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 46e9ecc6bb..ddd2be849a 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1198,6 +1198,8 @@ function download_url( $url, $timeout = 300, $signature_verification = false ) { if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) && ( 0 === validate_file( $tmpfname_disposition ) ) ) { + $tmpfname_disposition = dirname( $tmpfname ) . '/' . $tmpfname_disposition; + if ( rename( $tmpfname, $tmpfname_disposition ) ) { $tmpfname = $tmpfname_disposition; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 085663aae6..e9a37d7dce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52733'; +$wp_version = '6.0-alpha-52734'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.