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

WordPress Trac noreply at wordpress.org
Fri Mar 6 20:19:17 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:
------------------------------------------------------+------------------

Comment (by wonderboymusic):

 [attachment:25275.2.diff 25275.2.diff] is a DRY™ update. It has a `switch`
 for `audio|video|image` but still isn't generic, since it has to know how
 to check each "alias"

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


More information about the wp-trac mailing list