WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 12 months ago

Last modified 10 months ago

#11705 closed enhancement (wontfix)

get_media_item()'s $form_fields do not allow for <select>

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

11705-1.diff (836 bytes) - added by johnl1479 5 years ago.

Download all attachments as: .zip

Change History (9)

@johnl14795 years ago

comment:1 @scribu5 years ago

  • Milestone changed from Unassigned to 3.0

comment:2 @scribu5 years ago

  • Type changed from defect (bug) to enhancement

comment:3 follow-up: @Denis-de-Bernardy5 years ago

you can use the html input type to enter arbitrary html.

comment:4 in reply to: ↑ 3 @johnl14795 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.

comment:5 @nacin5 years ago

  • Milestone changed from 3.0 to Future Release

comment:6 @iseulde22 months ago

  • Component changed from Administration to Media

comment:7 @ericlewis12 months 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.

comment:8 @SergeyBiryukov10 months ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.