Ticket #5984: 5984.userConfiguredTempDir.diff
File 5984.userConfiguredTempDir.diff, 1.1 KB (added by , 17 years ago) |
---|
-
wp-config-sample.php
21 21 // to enable German language support. 22 22 define ('WPLANG', ''); 23 23 24 // WordPress wil store temporary files in this directory. Using an empty 25 // directory is recommended. 26 define('WPTEMPDIR', '/tmp'); 27 24 28 /* That's all, stop editing! Happy blogging. */ 25 29 26 30 define('ABSPATH', dirname(__FILE__).'/'); -
wp-admin/includes/file.php
182 182 if( ! $url ) 183 183 return false; 184 184 185 $tmpfname = tempnam( '/tmp', 'wpupdate');185 $tmpfname = tempnam(WPTEMPDIR, 'wpupdate'); 186 186 if( ! $tmpfname ) 187 187 return false; 188 188 … … 288 288 } 289 289 290 290 function get_filesystem_method() { 291 $tempFile = tempnam( '/tmp', 'WPU');291 $tempFile = tempnam(WPTEMPDIR, 'WPU'); 292 292 293 293 if ( getmyuid() == fileowner($tempFile) ) { 294 294 unlink($tempFile);