﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
23572,Add functions to parse Audio / Video data out of arbitrary content or a post,wonderboymusic,markjaquith,"= Scenarios

== Audio

After realizing that a post has a format of audio but no metadata for audio:
- Theme does not support Audio, but the content contains an <audio>, <object>, <embed>, or <iframe>
- Theme does not support Audio, but the content is a URL
- Theme does not support Audio, but the first line of content is a URL followed by a new line(s) and some commentary
- Theme does not support Audio, but the post has attached audio, and core or a plugin has an [audio] shortcode
- Theme does not support Audio, but the post has attached audio, and core or a plugin does not have an [audio] shortcode

Introduce `the_audio()`, `get_the_audio( $id = 0 )`, `get_post_audio( $post_id = 0 )`, `get_content_audio( &$content, $remove = false )`

== Video

After realizing that a post has a format of video but no metadata for video:
- Theme does not support Video, but the content contains an <video>, <object>, <embed>, or <iframe>
- Theme does not support Video, but the content is a URL
- Theme does not support Video, but the first line of content is a URL followed by a new line(s) and some commentary
- Theme does not support Video, but the post has attached video, and core or a plugin has an [video] shortcode
- Theme does not support Video, but the post has attached video, and core or a plugin does not have an [video] shortcode

Introduce `the_video()`, `get_the_video( $id = 0 )`, `get_post_video( $post_id = 0 )`, `get_content_video( &$content, $remove = false )`

== Helper functions

Introduce `get_tag_regex()` and `shortcode_exists( $tag )`
",enhancement,closed,normal,3.6,Post Formats,,normal,fixed,needs-unit-tests has-patch commit needs-codex,lancewillett beau@… xoodrew@… justin@… gabriel.koen@… batmoo@… jjj@… kontakt@… takashi@… chip@…
