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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 24 09:51:41 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.2.diff added
  * Main changes from denis's patch:
  * Switches from using \b to  a custom assertion so as to allow shortcodes
 with - in them
  * removes $begin / $end from the return, as its not needed since they
 only match []'s, which is short-circuited earlier in the function anyway
  * + => * there somewhere, to allow for [tag][/tag] (previously, it would
 just not match [/tag] with an empty content, leaving a closing shortcode
 in the post)

 Just looking into the still-valid nested shortcodes now though.. which
 this patch might not help either

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


More information about the wp-trac mailing list