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

WordPress Trac noreply at wordpress.org
Wed Sep 11 05:39:24 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        |  Resolution:
 Keywords:  attachments   |
--------------------------+------------------------------

Comment (by rmccue):

 Thanks for the patch!

 Two small issues with it:

 1. `$image_exts` is supposed to be called that; it stands for `image
 extensions`, not `image exists`
 2. You appear to have accidentally duplicated the function name, I believe
 the second one should be `wp_attachment_is_video` instead.

 (Apparently the filename has also disappeared from the diff, not quite
 sure why for that though.)

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


More information about the wp-trac mailing list