Opened 15 years ago
Closed 15 years ago
#20003 closed defect (bug) (fixed)
Removing a featured image breaks the ability to set a featured image
| Reported by: | batmoo | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
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.
Attachments (4)
Change History (12)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch globalizes
$post_IDin thewp_ajax_set_post_thumbnailcontext.