[wp-trac] [WordPress Trac] #11990: Post thumbnail not saved

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 24 12:53:59 UTC 2010


#11990: Post thumbnail not saved
--------------------------+-------------------------------------------------
 Reporter:  alexrabe      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.9       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Follow prodedure :

 1. Add new post
 2. Select "post thumbnail"
 3. Save as draft or publish

 Assigned Post thumbnail is not longer linked. Reason :
 admin-ajax.php ('set-post-thumbnail'), saves the relationship :

 {{{
 update_post_meta( $post_id, '_thumbnail_id', $thumbnail_id );
 }}}

 But when the post is not saved as draft/prublish it has a negativ ID
 (-12345679), which is not allowed for wp_postmedia column -> post_id and
 also not updated after you save the post

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11990>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list