[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 06:27:36 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):

 yes, there def needs to be a `the_video()` and `the_audio()` type thing,
 just needs to be thorough. Has to check for the following things:

 - Is the theme structured and is there meta?
 - Is there a video attached to the post instead? Is there more than one?
 - Is there an attachments AND meta? Is is the same or different?
 - Is there a `[video]` in the content?
 - Is there embed code(s) in the content?
 - does the content contain a video URL on a line by itself?

 In order of precedence, I would say:

 - Metadata
 - Attached video
 - Parse from content
  - Shortcode
  - URL by itself
  - Embed codes

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


More information about the wp-trac mailing list