[wp-trac] [WordPress Trac] #23431: [embed] shortcode doesn't work with do_shortcode()
WordPress Trac
noreply at wordpress.org
Sat Feb 9 17:11:46 UTC 2013
#23431: [embed] shortcode doesn't work with do_shortcode()
-----------------------------+------------------------------
Reporter: jtsternberg | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by jtsternberg):
Ok, digging a bit further, I realized the {{{WP_Embed}}} is initialized as
a global variable so is accessible to me via
{{{
$GLOBALS['wp_embed']->run_shortcode( '[embed width="890"]'. esc_url(
$video_url ) .'[/embed]' );
}}}
So pardon my interruption here. :)
Curious, should we document that in the codex?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23431#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list