WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22588


Ignore:
Timestamp:
11/26/12 04:07:47 (3 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22588 – Description

    initial v1  
    1 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 $_REQUEST['post_id'] checks in conjunction with parse_query, save_post, attachment_fields_to_save, or other filters. 
     1query-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 `$_REQUEST['post_id']` checks in conjunction with parse_query, save_post, attachment_fields_to_save, or other filters. 
    22 
    33We 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.