[wp-trac] [WordPress Trac] #22469: Remove trailing slash from UPLOADS constant
WordPress Trac
noreply at wordpress.org
Fri Nov 16 13:54:42 UTC 2012
#22469: Remove trailing slash from UPLOADS constant
--------------------------+--------------------
Reporter: jbrinley | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: critical | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Changes (by jbrinley):
* keywords: => has-patch
Comment:
Looks like it works pretty well to just apply {{{untrailingslashit()}}}
when doing the {{{str_replace()}}}. I can't find any other places in core
where {{{UPLOADS}}} is used that the trailing slash might matter. Patch
attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22469#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list