﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22469	Remove trailing slash from UPLOADS constant	jbrinley	ryan	"When building the uploads URL for multisite, {{{wp_upload_dir()}}} does this:

{{{
$url = str_replace( UPLOADS, 'files', $url );
}}}

Problem is, {{{UPLOADS}}} has a trailing slash; {{{$url}}} does not. That means that all image URLs look like http://example.com/wp-content/blogs.dir/123/files/YYYY/MM/image-file.png

I'm not sure if {{{UPLOADS}}} should be set without the trailing slash, or if {{{wp_upload_dir()}}} should {{{untrailingslashit()}}} before doing the {{{str_replace()}}}"	defect (bug)	closed	normal	3.5	Media	3.5	critical	fixed	has-patch commit	
