[wp-trac] [WordPress Trac] #20778: get_temp_dir should use the system tmp directory as first choice

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 04:59:06 UTC 2012


#20778: get_temp_dir should use the system tmp directory as first choice
------------------------------+-----------------------
 Reporter:  simonwheatley     |       Owner:  dd32
     Type:  enhancement       |      Status:  accepted
 Priority:  normal            |   Milestone:  3.5
Component:  Filesystem        |     Version:  2.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by dd32):

 Tested OK on a Windows 7 box..

 However, is_writable() works as expected for me on windows 7 with PHP
 5.4.4, Denying write causes is_writable to return false, Allowing Write
 but not Delete causes both is_writable() and is_win_writable() to return
 true (although the latter makes a PHP Warning (Unable to delete the test
 file)). I'd be interested in finding the configurations which cause it to
 fail..

 win_is_writable() will also need to move from wp-admin/includes/misc.php
 to wp-includes/functions.php, although core doesn't use get_temp_dir()
 outside of the admin, if it's available to plugins so it should work.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20778#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list