[wp-trac] [WordPress Trac] #12760: Escaping shortcode conditionally

WordPress Trac noreply at wordpress.org
Tue Jun 16 21:36:55 UTC 2015


#12760: Escaping shortcode conditionally
--------------------------------+-----------------------------
 Reporter:  pavelevap           |       Owner:  markjaquith
     Type:  defect (bug)        |      Status:  assigned
 Priority:  low                 |   Milestone:  Future Release
Component:  Shortcodes          |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  dev-feedback close  |     Focuses:
--------------------------------+-----------------------------
Changes (by aaroncampbell):

 * keywords:  dev-feedback => dev-feedback close


Comment:

 Honestly, I think that at this point we have to consider unregistered
 shortcodes to not be shortcodes at all. If you really need to use double
 brackets to escape unregistered shortcodes, just register them with
 {{{add_shortcode( 'shortcode', '__return_empty_string' )}}}

 I'm not saying this is "best case scenario", but I do think it's where we
 are right now for backwards compat, keeping the regexes as sane as
 possible, etc.

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


More information about the wp-trac mailing list