#22098 closed defect (bug) (duplicate)
Some notice errors in media.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Warnings/Notices | Version: | 3.4.2 |
| Severity: | normal | Keywords: | |
| 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)
comment:1
SergeyBiryukov — 8 months ago
- Component changed from General to Warnings/Notices
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
Fixed in trunk.
comment:4
SergeyBiryukov — 6 months ago
- Resolution changed from worksforme to duplicate
Duplicate of #22465.
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.