WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#22588 closed defect (bug)

Back compat $_REQUEST['post_id'] for media XHR requests — at Initial Version

Reported by: nacin Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description

query-attachments, save-attachments, and save-attachments-compat should all pass back 'post_id', for consistency with the old media-upload.php dialog, as plugins may be doing $_REQUESTpost_id? checks in conjunction with parse_query, save_post, attachment_fields_to_save, or other filters.

We should consider also calling set_current_screen( 'media-upload' ) for these three requests, or for at least query-attachments, to allow the current screen object to be accurate. It's kind of hacky, and doesn't handle $pagenow, but it is something to consider.

Change History (0)

Note: See TracTickets for help on using tickets.