WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#20003 closed defect (bug)

Removing a featured image breaks the ability to set a featured image — at Version 3

Reported by: batmoo Owned by:
Milestone: 3.4 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Repro steps:

  • Create a new post
  • Upload an image and set it as the featured image
  • Click on "Remove featured image"
  • Click on "Add featured image"
  • The Gallery tab isn't shown. Neither is the "Set featured image" for any uploaded images.

Problem is that in wp_ajax_set_post_thumbnail, the $post_ID variable isn't globalized, which _wp_post_thumbnail_html expects.

Related to the ajax re-org #15327 -- other things are possibly broken as well.

Change History (4)

@batmoo3 years ago

comment:1 @batmoo3 years ago

  • Keywords has-patch added

Patch globalizes $post_ID in the wp_ajax_set_post_thumbnail context.

comment:2 @danielbachhuber3 years ago

  • Cc wordpress@… added

comment:3 @SergeyBiryukov3 years ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 3.4
Note: See TracTickets for help on using tickets.