[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
Tue May 29 19:13:33 UTC 2012


#20778: get_temp_dir should use the system tmp directory as first choice
------------------------------------+------------------------------
 Reporter:  simonwheatley           |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Filesystem              |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by nacin):

 I tracked down this history in IRC with simonwheatley. The original order
 was introduced in #5984 and made sense at the time, but in [14016] an
 is_writeable() check was added to the result of sys_get_temp_dir(), at
 which point the order stopped making sense.

 It makes sense to first check sys_get_temp_dir() as long as we are still
 keeping the is_writeable().

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


More information about the wp-trac mailing list