[wp-trac] [WordPress Trac] #22186: Backwards compatibility for admin/includes/media.php hooks
WordPress Trac
noreply at wordpress.org
Mon Nov 26 04:03:17 UTC 2012
#22186: Backwards compatibility for admin/includes/media.php hooks
--------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.5
Component: Media | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by nacin):
An update on the audit:
Filters tied to the old dialog:
* '''media_upload_tabs''' — Supported.
* '''media_upload_default_tab''' — Not supported. Not really relevant,
and appears unused by plugins.
* '''media_buttons_context''' — Will be supported, see #22559.
* '''{$type}_upload_iframe_src''' — No longer relevant.
* '''media_upload_form_url''' — No longer relevant.
* '''get_media_item_args''' — Not ''currently'' supported.
* '''type_url_form_media''' — Not supported.
* '''media_upload_mime_type_links''' — Not supported. Chunk of HTML.
Filters for attachment data:
* '''image_size_names_choose''' — Supported.
* '''attachment_fields_to_save''' — Supported.
* '''attachment_fields_to_edit''' — Supported.
* '''media_meta''' — Supported.
Filters for sending to the editor:
* '''{$type}_send_to_editor_url''' (type = file, audio, or video) —
Supported.
* '''image_send_to_editor_url''' — Not supported. This filter was already
bypassed thanks to addExtImage.
* '''disable_captions''' — Supported.
Filters for "Insert into Post":
* '''media_send_to_editor''' — Supported.
* '''image_send_to_editor''' — Supported.
* '''image_add_caption_shortcode''' — Supported.
Upload UI filters:
* '''upload_post_params''' (new in 3.3) — Not supported.
* '''plupload_init''' (new in 3.3) — Not supported.
Upload UI actions:
* '''upload_ui_over_quota''' — Supported.
* '''pre-upload-ui''' — Supported.
* '''pre-plupload-upload-ui''' — Supported.
* '''post-plupload-upload-ui''' — Supported.
* '''pre-html-upload-ui''' — No browser uploader in the dialog, but kept
on media-new.php.
* '''post-html-upload-ui''' — No browser uploader in the dialog, but kept
on media-new.php.
* '''post-upload-ui''' Supported.
----
End result: Only get_media_item_args is left outstanding, as "Not
currently supported". We need to figure out how it works, how it was used
by plugins, how it applies to the new workflow, and whether it should
still be supported.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22186#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list