[wp-trac] [WordPress Trac] #12505: embed is not registered as a shortcode
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 5 21:29:50 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):
Replying to [comment:5 MattyRob]:
> Interesting and puzzling. Why register the shortcode and then de-
register it?!?
As I said, shortcodes normally run at 11, after `wpautop()` at 10. It
works much better if the `[embed]` shortcode is processed pre-`wpautop()`.
> Also, if I amend your code and register 'embed' but add it to the array
of tags and then strip them before restoring the original array would that
'fix' the strip_shortcodes function?
Not sure what you mean, but I'll be personally writing a patch to fix this
very soon.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12505#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list