[wp-trac] [WordPress Trac] #36789: Upload Folder Bug

WordPress Trac noreply at wordpress.org
Mon May 9 10:46:05 UTC 2016


#36789: Upload Folder Bug
--------------------------+-----------------------------
 Reporter:  netzilicious  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Affected Version 4.5.x

 If changing the upload folder path in wp-config.php (define( 'UPLOADS',
 'media' );) - no image will work after update to 4.5.x, because the url
 path structure changes in the sourcecode.

 for example:

 <img src="http://www.example.com/media/2015/02/example-300x300.jpg" alt=""
 width="300" height="300" class="alignleft size-medium wp-image-32"
 srcset="http://www.example.com/wp-content/uploads/2015/02/example-
 300x300.jpg 300w, http://www.example.com/wp-content/uploads/2015/02
 /example-150x150.jpg 150w, http://www.example.com/wp-
 content/uploads/2015/02/example.jpg 400w, http://www.example.com/wp-
 content/uploads/2015/02/example-50x50.jpg 50w, http://www.example.com/wp-
 content/uploads/2015/02/example-180x180.jpg 180w, http://www.example.com
 /wp-content/uploads/2015/02/example-200x200.jpg 200w" sizes="(max-width:
 300px) 100vw, 300px" />

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36789>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list