[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 Mar 7 17:14:14 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-refresh needs-unit-tests |
--------------------------------------------+------------------
Changes (by nacin):
* keywords: needs-refresh => needs-refresh needs-unit-tests
Comment:
The extraction code definitely needs unit tests.
Probably no need for so many functions. wp_get_post_videos( $post ) and
wp_get_post_audio( $post ) both returning arrays should be a sufficient
starting point. In general I would start with general utility functions
and then add more as we realize how best these will be used in a theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23572#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list