WP_HTTP: ensure that the temporary file is created within the temporary directly when `stream` is specified without a `filename` parameter.
Fixes #32549 Built from https://develop.svn.wordpress.org/trunk@32712 git-svn-id: http://core.svn.wordpress.org/trunk@32682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00e4f35300
commit
6657e42c7d
|
@ -213,7 +213,7 @@ class WP_Http {
|
||||||
* and pick its name using the basename of the $url.
|
* and pick its name using the basename of the $url.
|
||||||
*/
|
*/
|
||||||
if ( $r['stream'] && empty( $r['filename'] ) ) {
|
if ( $r['stream'] && empty( $r['filename'] ) ) {
|
||||||
$r['filename'] = wp_unique_filename( get_temp_dir(), basename( $url ) );
|
$r['filename'] = get_temp_dir() . wp_unique_filename( get_temp_dir(), basename( $url ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32711';
|
$wp_version = '4.3-alpha-32712';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue