Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11990 closed defect (bug) (fixed)

Post thumbnail not saved

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

Description

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
15 years ago

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

Closed #11706 as dup.

#2 @scribu
15 years ago

Also see #11889

#3 @Denis-de-Bernardy
15 years ago

  • Keywords featured added

#4 @markjaquith
15 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.