[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 21:44:50 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):
Patch updated.
Added `the_image()`
Also fixed `get_the_media()`so that the shortcode is removed from the
content. The problem was nesting of functions that all passed the same
variable by reference. Super weird. The content would be correct within
the function, but not when the function returned.
> do_shortcode( '[embed]http://www.youtube.com/watch?v=9yEtf-
r08uM[/embed]' ) did not work for me.
I think `[embed]` only works during `the_content()` - it works in
`post_format_compat()` because that filter runs before the embed filter
runs.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23572#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list