[wp-trac] [WordPress Trac] #22469: Remove trailing slash from UPLOADS constant

WordPress Trac noreply at wordpress.org
Tue Nov 20 16:24:14 UTC 2012


#22469: Remove trailing slash from UPLOADS constant
--------------------------+-----------------------
 Reporter:  jbrinley      |       Owner:  ryan
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  critical      |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by ryan):

 dotcom uses that block of code from uploads-wpcom.diff​ to override all of
 the juggling wp_upload_dir() does, juggling that ends in the wrong result.
 It wasn't just slashes that were wrong, IIRC.

 dotcom doesn't put trailing slashes on either UPLOADS or BLOGUPLOADDIR.

 22469_untrailingslash_UPLOADS.diff​ seems safe although I too am failing
 to see what would cause a slashing change vs. 3.4.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22469#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list