[wp-trac] [WordPress Trac] #12505: embed is not registered as a shortcode
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 4 08:26:25 UTC 2010
#12505: embed is not registered as a shortcode
--------------------------+-------------------------------------------------
Reporter: MattyRob | Owner: Viper007Bond
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.0
Component: Shortcodes | Version: 2.9.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by Viper007Bond):
You guys are incorrect. "embed" is registered as a shortcode, but only for
a short amount of time. Look at `WP_Embed::run_shortcode()` in `/wp-
includes/media.php`. It is a `the_content` filter that hooks in
pre-`wpautop()` that runs one specific shortcode.
http://www.viper007bond.com/2009/11/22/wordpress-code-earlier-shortcodes/
The only solution I can think of is to register the tag to a dummy
callback (as described by belg4mit) but then substitute it out for the
real callback when we actually go to render it. A bit messy, but it should
work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12505#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list