#22098 closed defect (bug) (duplicate)
Some notice errors in media.php
Reported by: | alexvorn2 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4.2 |
Component: | Warnings/Notices | Keywords: | |
Focuses: | Cc: |
Description
Notice: Undefined index: post_id in D:\Dropbox\htdocs\wordpresslast\wp-admin\includes\media.php on line 1500
Notice: Undefined index: post_id in D:\Dropbox\htdocs\wordpresslast\wp-admin\includes\media.php on line 1780
This happens when you chose to upload a file to the gallery, (ex: in a custom admin panel) , and you don't provide a post id because there is no post, only a custom menu page...
Change History (4)
Note: See
TracTickets for help on using
tickets.
Just seen this error doing some debugging on plugins in WP 3.4.2.
Line 1769 same media.php file. A simple isset() check fixes it.