[wp-trac] [WordPress Trac] #10326: strip_shortcodes() greedily strips surrounding characters

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 1 19:00:43 UTC 2009


#10326: strip_shortcodes() greedily strips surrounding characters
--------------------------+-------------------------------------------------
 Reporter:  markjaquith   |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  2.9
Component:  Shortcodes    |     Version:  2.8
 Severity:  major         |    Keywords:     
--------------------------+-------------------------------------------------
 {{{strip_shortcodes()}}} which is run on excerpts is too greedy.

 Input:

 {{{before[gallery]after}}}

 Output:

 {{{beforfter}}}

 As you can see, the characters immediately preceding and following the
 shortcode have been stripped out. These characters should be preserved.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10326>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list