Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#49036 closed defect (bug) (invalid)

existent shortcodes parsed if wrapped inside <code> tag

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

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
4 years ago

  • Component changed from Editor to Shortcodes
  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 5.3.1 deleted

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.