Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#11990 closed defect (bug) (fixed)

Post thumbnail not saved

Reported by: alexrabe Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Post Thumbnails Keywords: featured
Focuses: Cc:


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

Change History (4)

#1 @scribu
10 years ago

  • Component changed from General to Post Thumbnails
  • Milestone changed from Unassigned to 3.0

Closed #11706 as dup.

#2 @scribu
10 years ago

Also see #11889

#3 @Denis-de-Bernardy
10 years ago

  • Keywords featured added

#4 @markjaquith
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12987]) Create post_status=auto-draft when creating a new post item. status changes to draft on first auto-save. now we always have a real post ID to work with. see #11889. fixes #11145. fixes #11990

Note: See TracTickets for help on using tickets.