[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
Wed Mar 27 18:35:27 UTC 2013


#23572: Add functions to parse Audio / Video data out of arbitrary content or a
post
-----------------------------------------------+--------------------------
 Reporter:  wonderboymusic                     |       Owner:  markjaquith
     Type:  enhancement                        |      Status:  closed
 Priority:  normal                             |   Milestone:  3.6
Component:  Post Formats                       |     Version:
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  needs-unit-tests has-patch commit  |
-----------------------------------------------+--------------------------
Changes (by markjaquith):

 * owner:   => markjaquith
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"23819"]:
 {{{
 #!CommitTicketReference repository="" revision="23819"
 Give themers tangible, user-friendly template functions to take full
 advantage of structured post formats.

 * the_audio()
 * the_video()
 * the_image()
 * get_the_media()

 Also introduces:

 * get_the_extra_content()
 * the_extra_content()

 Those two functions are like their non-extra versions, except that they
 will have any post-format bits extracted. e.g. It's an image post, for
 which the_image() will extract an <img /> tag. the_extra_content() will
 output the content *without* that image.

 props wonderboymusic. Herculean effort. fixes #23572
 }}}

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


More information about the wp-trac mailing list