[wp-trac] [WordPress Trac] #13033: "Use as featured image" not showing after deleting featured image
WordPress Trac
wp-trac at lists.automattic.com
Tue May 18 03:31:24 UTC 2010
#13033: "Use as featured image" not showing after deleting featured image
--------------------------+-------------------------------------------------
Reporter: alexmglover | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Media | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by PotterSys):
* keywords: => has-patch
* priority: normal => high
* milestone: Unassigned => 3.0
Comment:
I could trace the problem to `admin-ajax.php`. The function that creates
the link for the upload has a `global $post_ID`. However, the `set-post-
thumbnail` case have a `$post_id` (yes, 2 different variable names).
As a first attempt to fix it, just adding `$post_ID = $post_id;` below
line 1465 fixes the bug. Another option (way more cool) is changing the
variable name in `set-post-thumbnail`; but there's no clue if this bug
could flip (ie. : another function has `global $post_id`)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13033#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list