Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#49036 closed defect (bug) (invalid)

existent shortcodes parsed if wrapped inside <code> tag

Reported by: axewww Owned by:
Priority: normal Milestone:
Component: Shortcodes Version:
Severity: normal Keywords:
Cc: Focuses:

Description (last modified by ocean90)

[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?

Change History (1)

#1 @ocean90
7 years ago

  • Component EditorShortcodes
  • Description modified (diff)
  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed
  • Version 5.3.1

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.

Note: See TracTickets for help on using tickets.