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

WordPress Trac noreply at wordpress.org
Tue Sep 20 15:16:35 UTC 2022


#49852: Use feature image of video attachment as preview instead of icon
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-        |     Focuses:
  screenshots changes-requested                  |
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 @cadic Didn't say it was a performance issue.

 This check mirrors [https://github.com/WordPress/wordpress-
 develop/blob/0cfcb3e2722bf967cd44ef8d999f6fbc14a95891/src/wp-
 includes/post.php#L4569-L4575 this].  A developer could filter
 `wp_get_audio_extensions` or `wp_get_video_extensions`. So we have to use
 `wp_attachment_is`.

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


More information about the wp-trac mailing list