[wp-trac] [WordPress Trac] #49036: existent shortcodes parsed if wrapped inside <code> tag
WordPress Trac
noreply at wordpress.org
Thu Dec 19 11:20:12 UTC 2019
#49036: existent shortcodes parsed if wrapped inside <code> tag
--------------------------+----------------------
Reporter: axewww | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Shortcodes | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by ocean90):
* status: new => closed
* component: Editor => Shortcodes
* version: 5.3.1 =>
* milestone: Awaiting Review =>
* resolution: => invalid
Old description:
> {{{
> [mycustomshort]
> }}}
>
> no way i try to add something like this into a post, that may need to be
> a documentation, so code should display as is and not parsed.
> If i go to add any shortcode that is recognized as valid/existent, it is
> by the way parsed as shortcode even if wrapped inside
> {{{
> <pre><code>
> }}}
> tags:
> All ok about this?
New description:
{{{
[mycustomshort]
}}}
no way i try to add something like this into a post, that may need to be a
documentation, so code should display as is and not parsed.
If i go to add any shortcode that is recognized as valid/existent, it is
by the way parsed as shortcode even if wrapped inside `<pre><code>` tags:
All ok about this?
--
Comment:
Hello @axewww
If you want to not render shortcodes you can escape them by doubling the
brackets, like in `[[mycustomshort]]`. For more see
https://codex.wordpress.org/Shortcode#Escaping_Shortcodes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49036#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list