[wp-trac] [WordPress Trac] #23572: Add functions to parse Audio / Video data out of arbitrary content or a post
WordPress Trac
noreply at wordpress.org
Tue Mar 26 19:00:28 UTC 2013
#23572: Add functions to parse Audio / Video data out of arbitrary content or a
post
-----------------------------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Post Formats | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch commit |
-----------------------------------------------+------------------
Comment (by wonderboymusic):
Ok, I updated attachment:23572-html.diff and added 3 functions:
- `get_the_media( $type )`
- `the_audio()`
- `the_video()`
`the_audio()` and `the_video()` are just wrappers for `get_the_media()`,
which contains all of the black voodoo to return the HTML for an audio or
video and remove it from the global post's content when appropriate. Does
a post format check for meta only
Comments?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23572#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list