[wp-trac] [WordPress Trac] #22572: PHP Notice: Undefined index: post_id in /wp-admin/media-new.php on line 27
WordPress Trac
noreply at wordpress.org
Mon Nov 26 23:10:20 UTC 2012
#22572: PHP Notice: Undefined index: post_id in /wp-admin/media-new.php on line 27
------------------------------+---------------------
Reporter: Chouby | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Changes (by ryan):
* owner: => ryan
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"22853"]:
{{{
#!CommitTicketReference repository="" revision="22853"
In media_upload_flash_bypass(), pass the post id in the media-new.php url.
In media-new.php, use post_id from REQUEST if passed and the current user
can edit the post.
Fixes adding media with the browser uploader.
Props nacin, ocean90
fixes #22572
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22572#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list