[wp-trac] [WordPress Trac] #25820: [embed] shortcode can't be escaped like others

WordPress Trac noreply at wordpress.org
Mon Nov 4 21:36:58 UTC 2013


#25820: [embed] shortcode can't be escaped like others
--------------------------+-----------------------------
 Reporter:  MadtownLems   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Shortcodes    |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 WordPress allows the use of double brackets to escape shortcodes, so that
 entering {{{[}}}{{{[}}}foo{{{]}}}{{{]}}} in your page or post displays
 [foo].  This works great for most shortcodes, and is used in the following
 way on enclosed shortcodes:  {{{[}}}[foo]Hello![/foo]{{{]}}}

 However, this feature fails when trying to use it with core's 'embed'
 shortcode.

 To replicate:

 Enter the following in a page or post:
 {{{[}}}{{{[}}}embed{{{]}}}http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed{{{]}}}{{{]}}}

 What I expect to see:
 [embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]

 What I really see:
 (null)

 (Apologies for the weird mix of [, ], and special characters here. had a
 hard time with getting the markup to render as I wanted.)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25820>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list