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:
Dion Hulse 2015-06-09 03:55:27 +00:00
parent 00e4f35300
commit 6657e42c7d
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class WP_Http {
* and pick its name using the basename of the $url.
*/
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 ) );
}
/*

View File

@ -4,7 +4,7 @@
*
* @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.