[wp-trac] [WordPress Trac] #25275: Checking if attachment is audio/video
WordPress Trac
noreply at wordpress.org
Mon May 26 01:15:14 UTC 2014
#25275: Checking if attachment is audio/video
--------------------------+------------------------------
Reporter: danielpataki | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.6
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Changes (by ericlewis):
* keywords: has-patch => needs-patch
Comment:
There's plenty of code duplication here, and an open argument for
`wp_attachment_is_pdf()` and on and on. How about `wp_attachment_is(
$attachment_id, 'type' )`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25275#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list