[wp-trac] [WordPress Trac] #49852: Use feature image of video attachment as preview instead of icon

WordPress Trac noreply at wordpress.org
Tue Dec 6 19:22:39 UTC 2022


#49852: Use feature image of video attachment as preview instead of icon
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-        |     Focuses:
  screenshots commit early                       |
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54941" 54941]:
 {{{
 #!CommitTicketReference repository="" revision="54941"
 Media: Use featured image if available for attachment as preview instead
 of icon.

 When rendering a list of attachments in `WP_Media_List_Table` class, none
 image attachments, show a generic icon. However, attachment types like
 audio and video support adding a featured image. For attachments that have
 featured images, us this image instead of the icon. This featured image is
 a better preview than a generic icon.

 Props spacedmonkey, samful, johnbillion, JavierCasares, seanchayes, antpb,
 cadic, JeffPaul.
 Fixes #49852.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49852#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list