#11705 closed enhancement (wontfix)
get_media_item()'s $form_fields do not allow for <select>
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.0 |
| Component: | Media | Keywords: | has-patch |
| Focuses: | Cc: |
Description
get_media_item() of wp-admin/includes/media.php does not allow for <select>-style fields. This makes extending the "Edit Media" screen via the "attachment_field_to_edit" filter difficult for plugin authors to extend.
Attachments (1)
Change History (9)
#4
in reply to:
↑ 3
@
16 years ago
Replying to Denis-de-Bernardy:
you can use the html input type to enter arbitrary html.
this is true, but i feel that passing an array of options would be simpler.
#7
@
12 years ago
- Resolution set to wontfix
- Status changed from new to closed
This functionality is more or less irrelevant since 3.5. The old media iframe is still supported for back compat (see #22186), but we shouldn't be adding more filters to functionality that is not officially deprecated but not actively developed upon.
At this point, developers can add custom meta boxes in the Edit Media screen or customize the attachment details underscore microtemplates/View to add custom meta data to media. The process for that is not obvious, documented, or perfect, but it's possible, and more documentation on that will come in one form or another during this cycle, probably here.
Closing this out.
you can use the html input type to enter arbitrary html.