[wp-trac] [WordPress Trac] #28720: Shortcode Escaping Doesn't Work in Most Situations

WordPress Trac noreply at wordpress.org
Tue Oct 28 20:19:30 UTC 2014


#28720: Shortcode Escaping Doesn't Work in Most Situations
--------------------------+------------------------------
 Reporter:  miqrogroove   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------

Comment (by aaroncampbell):

 Replying to [comment:3 jdgrimes]:
 > I think what brought me here originally was a scenario in which I wanted
 to display shortcode examples. The plugin that provides those shortcodes
 wasn't installed, but I was planning to possibly install it in the future.
 I wanted to avoid those examples being actually executed by the plugin if
 I installed it later. I thought I would escape them, but I couldn't.

 A) I think that's definitely an edge-case
 B) You can fix it as you did, or you can use HTML entities for the
 brackets like I did `[` becomes `[` and `]` becomes `]`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28720#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list