[wp-trac] [WordPress Trac] #22985: Edit thumbnail image only - loses all sub sizes in attachment meta
WordPress Trac
noreply at wordpress.org
Tue Dec 18 11:01:58 UTC 2012
#22985: Edit thumbnail image only - loses all sub sizes in attachment meta
--------------------------+------------------------------
Reporter: lewismcarey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.5
Severity: major | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by lewismcarey):
The main diff I can see between image-edit.php 3.4 & 3.5 is
{{{
695 $meta['sizes'] = $img->multi_resize( $_sizes );
}}}
replaces
{{{
596 if ( $resized )
597 $meta['sizes'][$size] = $resized;
598 else
599 unset($meta['sizes'][$size]);
}}}
before wp_update_attachment_metadata($post_id, $meta); is called on
success.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22985#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list