Ticket #5984: 5984.diff
File 5984.diff, 1.2 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/file.php
182 200 if( ! $url ) 183 201 return false; 184 202 185 $tmpfname = tempnam( '/tmp', 'wpupdate');203 $tmpfname = tempnam(CACHEDIR, 'wpdownload'); 186 204 if( ! $tmpfname ) 187 205 return false; 188 206 … … 288 306 } 289 307 290 308 function get_filesystem_method() { 291 $tempFile = tempnam( '/tmp', 'WPU');309 $tempFile = tempnam(CACHEDIR, 'checkfile'); 292 310 293 311 if ( getmyuid() == fileowner($tempFile) ) { 294 312 unlink($tempFile); -
wp-settings.php
323 323 */ 324 324 if ( !defined('COOKIE_DOMAIN') ) 325 325 define('COOKIE_DOMAIN', false); 326 327 /** 328 * Cache directory for WordPress, Defined as Absolute to allow for non-WP directories 329 * It is possible to define this in wp-config.php 330 * @since 2.5.0 331 */ 332 if( ! defined('CACHEDIR') ) 333 define('CACHEDIR', ABSPATH . 'wp-content/tmp/'); 326 334 327 335 require (ABSPATH . WPINC . '/vars.php'); 328 336