Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#36789 new defect (bug)

Upload Folder Bug

Reported by: netzilicious's profile netzilicious Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5
Component: Media Keywords: reporter-feedback
Focuses: Cc:


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="" alt="" width="300" height="300" class="alignleft size-medium wp-image-32" srcset=" 300w, 150w, 400w, 50w, 180w, 200w" sizes="(max-width: 300px) 100vw, 300px" />

Change History (3)

#1 @voldemortensen
8 years ago

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?

#2 @voldemortensen
8 years ago

  • Keywords reporter-feedback added

#3 @lukecavanagh
8 years ago

Thanks for posting netzilicious.

Could you post the code snippet that you used to modify the upload directory in your functions.php file?

Note: See TracTickets for help on using tickets.