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

WordPress Trac noreply at wordpress.org
Wed Sep 11 05:35:53 UTC 2013


#25275: Checking if attachment is adio/video
--------------------------+-----------------------------
 Reporter:  danielpataki  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.6
 Severity:  normal        |   Keywords:  attachments
--------------------------+-----------------------------
 Hi Everyone!

 This is my first time attaching a diff, if you have a moment, please let
 me know if I am doing it wrong,

 I am building a theme just now which needs to check if an attachment is
 audio. It seems that only image format functions are included in post.php
 (wp_attachment_is_image()) so I quickly created one for audio and video.

 I am not a huge expert on formats, so if you have any more to add, please
 let me know!

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25275>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list