[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:18:34 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  |
-----------------------------------------------+------------------
Changes (by wonderboymusic):

 * keywords:  needs-unit-tests has-patch => needs-unit-tests has-patch
               commit


Comment:

 attachment:23572-html.diff changes the function signatures for the
 following functions:

 - `get_content_image( &$content, $html = true, $remove = false )`
 - `get_content_images( &$content, $html = true, $remove = false, $limit =
 0 )`
 - `get_content_video( &$content, $html = true, $remove = false )`
 - `get_content_audio( &$content, $html = true, $remove = false )`
 - `get_content_media( $type, &$content, $html = true, $remove = false )`

 By default now, you get the HTML for the matched items, set `$html` to
 `false` to get the `src`s

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


More information about the wp-trac mailing list