[wp-trac] [WordPress Trac] #6073: wp_upload_dir() produces
incorrect URL if upload_path is empty
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 3 03:06:47 GMT 2008
#6073: wp_upload_dir() produces incorrect URL if upload_path is empty
------------------------+---------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Keywords: has-patch
------------------------+---------------------------------------------------
There was a bug in the patch at #5953. If the upload_path option is
empty, it produces attachment URLs like
http://example.com//2008/03/foo.jpg instead of http://example.com/wp-
content/uploads/2008/03/foo.jpg. The filesystem path is correct, just the
URL is broken. The enclosed patch fixes it.
I added a new unit test for the specific case, test_upload_dir_empty():
http://svn.automattic.com/wordpress-tests/wp-testcase/test_uploads.php
--
Ticket URL: <http://trac.wordpress.org/ticket/6073>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list