[wp-trac] [WordPress Trac] #25275: Checking if attachment is audio/video

WordPress Trac noreply at wordpress.org
Wed Mar 4 19:02:59 UTC 2015

#25275: Checking if attachment is audio/video
 Reporter:  danielpataki                              |       Owner:
     Type:  enhancement                               |      Status:  new
 Priority:  normal                                    |   Milestone:  4.2
Component:  Media                                     |     Version:  3.6
 Severity:  normal                                    |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-tests  |     Focuses:
Changes (by wonderboymusic):

 * keywords:  needs-patch => has-patch needs-testing needs-unit-tests
 * milestone:  Awaiting Review => 4.2


 [attachment:25275.diff 25275.diff] is more comprehensive.
 `wp_attachment_is_image()` is only called twice, and one of them is
 deprecated. `wp_attachment_is_audio()` would be called 8 times and unify
 the approach.

Ticket URL: <https://core.trac.wordpress.org/ticket/25275#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list