[wp-trac] Re: [WordPress Trac] #9264: Self closing shortcodes

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 3 20:51:49 GMT 2009


#9264: Self closing shortcodes
--------------------------+-------------------------------------------------
 Reporter:  rb-cohen      |       Owner:  westi           
     Type:  defect (bug)  |      Status:  accepted        
 Priority:  normal        |   Milestone:  2.8             
Component:  Shortcodes    |     Version:  2.7.1           
 Severity:  normal        |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 I'll be happy to look into regressions if this one gets committed in 2.8.
 I don't expect any, but I can picture a single problematic use-case:


 {{{
 [foo att="bar"]something[/foo]
 }}}

 Depending on how we check for "something" and/or "[/foo]" over in the
 shortcodes-related functions, we might have null fields where we're
 expecting something that contains an empty string.

 That being said, it's miles more efficient that the current code and it
 should fix the severe problems outlined over in #8553

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


More information about the wp-trac mailing list