From 6657e42c7dfa180e02b54fe5c96cb7a25d8b4426 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 9 Jun 2015 03:55:27 +0000 Subject: [PATCH] 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 --- wp-includes/class-http.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index c014004c05..206d406539 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -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 ) ); } /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 8297dc545c..e3a0247f95 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.