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

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 00:11:32 UTC 2011


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

 * cc: azram19 (added)


Comment:

 I've attached a patch that adds `escape_shortcode()` and uses it to escape
 shortcodes of the form `[[foobar]]` and `[[foo]bar[/foo]]`.

 It also escapes `[[embed]foobar[/embed]]`, which hasn't been escaped by
 the previous patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12760#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list