[wp-trac] [WordPress Trac] #22469: Remove trailing slash from UPLOADS constant
WordPress Trac
noreply at wordpress.org
Wed Nov 21 07:08:40 UTC 2012
#22469: Remove trailing slash from UPLOADS constant
------------------------------+---------------------
Reporter: jbrinley | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: critical | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Changes (by markjaquith):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"22736"]:
{{{
#!CommitTicketReference repository="" revision="22736"
Remove trailing slashes from UPLOADS before trying a str_replace() in
wp_upload_dir(). props jbrinley. fixes #22469
* In 3.4.x, both $url and UPLOADS had trailing slashes
* Due to refactoring, $url is no longer expected to have a trailing slash
* Because of the mismatch, the str_replace() was not working, resulting in
an incorrectly verbose upload dir URL
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22469#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list