[wp-trac] Re: [WordPress Trac] #5953: Absolute upload_path fails
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 22 06:42:18 GMT 2008
#5953: Absolute upload_path fails
------------------------+---------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by tellyworth):
The attached patch fixes the main issue. It doesn't do anything about the
case where upload_path is absolute and upload_url_path is empty - that
probably needs a second opinion.
path_is_absolute() and path_join() might be useful elsewhere.
I also snuck in a minor addition: wp_upload_dir() now returns an extra
element that just contains the subdir within the upload directory (if
any). That might be useful for fixing the file attachment guid situation.
--
Ticket URL: <http://trac.wordpress.org/ticket/5953#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list