[wp-trac] [WordPress Trac] #10082: shortcode bug

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 24 10:03:18 UTC 2009


#10082: shortcode bug
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  petervanderdoes
     Type:  defect (bug)       |      Status:  accepted       
 Priority:  normal             |   Milestone:  2.8.3          
Component:  Shortcodes         |     Version:  2.8            
 Severity:  critical           |    Keywords:  has-patch      
-------------------------------+--------------------------------------------

Comment(by dd32):

 > attachment 10082.3.diff added
  * I couldnt see any other way of doing nested shortcodes with the
 suggested regex of denis's, But I cant see a better way of doing that
 regex either, Its exactly what i was thinking of changing it to (well
 close enough i'd have got there)
  * Strips out the 2nd use of $tagregex in the regex instead only stopping
 on the closing tag of the CURRENTLY MATCHED shortcode
  * ie. [1][2]....[/2][/1] 1 will only match a closing 1 not the closing 2
 (Which results in a [/1] left in the post content otherwise)

 This still needs testing, I've not attempted running the test set yet,
 other than the test-data posts i've just setup.

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


More information about the wp-trac mailing list