Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#36052 closed enhancement (fixed)

Non-Image/Audio/Video Attachments Can't Display on Edit

Reported by: georgestephanis's profile georgestephanis Owned by: joemcgill's profile joemcgill
Milestone: 4.6 Priority: low
Severity: minor Version:
Component: Media Keywords: has-patch commit
Focuses: administration Cc:

Description

When going to /wp-admin/post.php?post={$id}&action=edit if you're working with a media item that isn't an image, audio, or video file hosted locally, there isn't any way to display a preview of it below the permalink.

It'd be nice to add an action that plugins could hook into to render the attachment as a fallback.

Attachments (2)

fallback-media-edit-display.diff (550 bytes) - added by georgestephanis 9 years ago.
36052.diff (582 bytes) - added by joemcgill 9 years ago.

Download all attachments as: .zip

Change History (12)

This ticket was mentioned in Slack in #core-images by georgestephanis. View the logs.


9 years ago

#2 @joemcgill
9 years ago

  • Owner set to joemcgill
  • Status changed from new to reviewing

#3 @chriscct7
9 years ago

  • Version trunk deleted

#4 @joemcgill
9 years ago

  • Milestone changed from Awaiting Review to 4.6

Moving to 4.6 for consideration.

This ticket was mentioned in Slack in #core by chriscct7. View the logs.


9 years ago

This ticket was mentioned in Slack in #core by voldemortensen. View the logs.


9 years ago

This ticket was mentioned in Slack in #core-images by joemcgill. View the logs.


9 years ago

#8 @joemcgill
9 years ago

  • Keywords commit added

This still seems like a good idea and the patch is working well.

@joemcgill
9 years ago

#9 @joemcgill
9 years ago

  • Status changed from reviewing to accepted

Updated the patch in 36052.diff to add docs for the new action hook.

#10 @joemcgill
9 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [37879].

Note: See TracTickets for help on using tickets.