[wp-trac] [WordPress Trac] #12505: embed is not registered as a shortcode

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 3 22:00:34 UTC 2010


#12505: embed is not registered as a shortcode
--------------------------+-------------------------------------------------
 Reporter:  MattyRob      |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  high          |   Milestone:  3.0  
Component:  Shortcodes    |     Version:  2.9.2
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by belg4mit):

 A work around is to add the following to functions.php

 {{{
 add_shortcode('embed', create_function( '', ''));
 }}}

 It's a no-op, which is fine because embed is actually handled specially in
 embed.php
 (not shortcode.php). It's only purpose is to make an entry with the key
 embed into
 the global $shortcode_tags which is what is used to strip_shortcodes.

 This is especially handy if you use something like Subscribe2.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12505#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list