Opened 9 years ago
Last modified 6 years ago
#36789 new defect (bug)
Upload Folder Bug
Reported by: | netzilicious | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5 |
Component: | Media | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
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" />
Thanks for the report @netzilicious! However, I'm unable to reproduce this issue on 4.5.2 or on current trunk. Do you have any plugins or custom filters that might be modifying the srcset?