[wp-trac] Re: [WordPress Trac] #5953: Absolute upload_path fails

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 23 00:28:49 GMT 2008


#5953: Absolute upload_path fails
------------------------+---------------------------------------------------
 Reporter:  tellyworth  |        Owner:  tellyworth
     Type:  defect      |       Status:  new       
 Priority:  normal      |    Milestone:  2.5       
Component:  General     |      Version:            
 Severity:  normal      |   Resolution:            
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by tellyworth):

 Initially I wrote that function with DIRECTORY_SEPARATOR, but that
 constant isn't used anywhere else in WP so I changed it for consistency.
 Also, using / instead of DIRECTORY_SEPARATOR leaves open the possibility
 of using path_join() on URL paths.

 We could use the constant and perhaps create a second function,
 url_path_join(), that always uses a /.  But I think for that to make sense
 we'd need to review and change all paths in WP to use DS instead of a hard
 coded slash.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5953#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list