Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#22985 closed defect (bug)

Edit thumbnail image only - loses all sub sizes in attachment meta — at Initial Version

Reported by: lewismcarey Owned by:
Milestone: 3.5.1 Priority: high
Severity: critical Version: 3.5
Component: Media Keywords: has-patch
Focuses: Cc:


I have several additional image sizes in my theme. When I crop an image and save over only the thumbnail, all references to the various sub-sizes are lost and only the new thumbnail is referenced in _wp_attachment_metadata.

Add an image to the media library. Output _wp_attachment_metadata. Edit the image (crop). Save only the thumbnail. Output the relevant _wp_attachment_metadata.

This may be an issue with wp_save_image() not re-genarating subsizes from the original. I believe this to be different from Ticket #19889 as it appears to remove references to default sizes from media settings screen.

Change History (0)

Note: See TracTickets for help on using tickets.