[wp-trac] [WordPress Trac] #41802: add wp_attachment_is_audio() and wp_attachment_is_video()
WordPress Trac
noreply at wordpress.org
Tue Sep 5 15:01:39 UTC 2017
#41802: add wp_attachment_is_audio() and wp_attachment_is_video()
-------------------------+------------------------------
Reporter: pbiron | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Changes (by pbiron):
* keywords: => has-patch
Comment:
In addition to adding `wp_attachment_is_audio()` and
`wp_attachment_is_video()`, the patch also replaces all uses of
`wp_attachment_is( 'audio' )` and `wp_attachment_is( 'video' )` with the
new functions (except in unit tests, where the new functions are added to
the relevant existing tests that use `wp_attachment_is()`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41802#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list