Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25820


Ignore:
Timestamp:
11/04/2013 09:53:09 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25820 – Description

    initial v1  
    1 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]{{{]}}}
     1WordPress 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]]`
    22
    33However, this feature fails when trying to use it with core's 'embed' shortcode.
     
    66
    77Enter the following in a page or post:
    8 {{{[}}}{{{[}}}embed{{{]}}}http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed{{{]}}}{{{]}}}
     8`[[embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]]`
    99
    1010What I expect to see:
    11 [embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]
     11`[embed]http://www.youtube.com/watch?v=YLO7tCdBVrA[/embed]`
    1212
    1313What I really see:
    14 (null)
     14`(null)`
    1515
    1616(Apologies for the weird mix of [, ], and special characters here. had a hard time with getting the markup to render as I wanted.)