[wp-trac] [WordPress Trac] #20003: Removing a featured image breaks the ability to set a featured image
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 9 18:27:09 UTC 2012
#20003: Removing a featured image breaks the ability to set a featured image
--------------------------+------------------
Reporter: batmoo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 3.4
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20003#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list