Opened 8 months ago

Closed 6 months ago

Last modified 6 months ago

#22098 closed defect (bug) (duplicate)

Some notice errors in media.php

Reported by: alexvorn2 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)

  • Component changed from General to Warnings/Notices
  • Version set to 3.4.2

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.

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Fixed in trunk.

  • Resolution changed from worksforme to duplicate

Duplicate of #22465.

Note: See TracTickets for help on using tickets.