[wp-trac] [WordPress Trac] #25275: Checking if attachment is audio/video
WordPress Trac
noreply at wordpress.org
Wed Mar 4 20:28:52 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 DrewAPicture):
@wonderboymusic: What do you think about my suggestion in comment:5 to
deprecate `wp_attachment_is_image()` and create a generic
`wp_attachment_is_type()` function instead of creating two new functions
that do exactly the same thing for different mime types?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25275#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list