Make WordPress Core

Opened 6 years ago

Closed 18 months ago

Last modified 17 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:


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 6 years ago.

Download all attachments as: .zip

Change History (9)

6 years ago

#1 @scribu
6 years ago

  • Milestone changed from Unassigned to 3.0

#2 @scribu
6 years ago

  • Type changed from defect (bug) to enhancement

#3 follow-up: @Denis-de-Bernardy
6 years ago

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

#4 in reply to: ↑ 3 @johnl1479
6 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.

#5 @nacin
6 years ago

  • Milestone changed from 3.0 to Future Release

#6 @iseulde
2 years ago

  • Component changed from Administration to Media

#7 @ericlewis
18 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.

#8 @SergeyBiryukov
17 months ago

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