[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
Thu Feb 21 06:34:57 UTC 2013


#23572: Add functions to parse Audio / Video data out of arbitrary content or a
post
----------------------------+-------------------------
 Reporter:  wonderboymusic  |       Type:  enhancement
   Status:  new             |   Priority:  normal
Milestone:  3.6             |  Component:  Media
  Version:                  |   Severity:  normal
 Keywords:  has-patch       |
----------------------------+-------------------------
 = 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 )`

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23572>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list