[wp-trac] [WordPress Trac] #10702: Support for complex nested shorttags

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 30 13:43:53 UTC 2009


#10702: Support for complex nested shorttags
----------------------------+-----------------------------------------------
 Reporter:  pepijndevos     |        Type:  enhancement
   Status:  new             |    Priority:  normal     
Milestone:  Future Release  |   Component:  Shortcodes 
  Version:  2.9             |    Severity:  normal     
 Keywords:  needs-patch     |  
----------------------------+-----------------------------------------------

Comment(by pepijndevos):

 Because I can't.

 I've never written a complex non-regex parser(and have no idea how to do
 it*) and never contributed a patch to Wordpress.

 It'd be an interesting learning experience, but I doubt if it will work,
 be Wordpress coding style, backwards compatible, etc...
 Looking at shortcode.php I'm not sure which parts are mandatory an what I
 can throw out to write something new(with all those comments).

 * If I had to write a parser I think I would do it with a lot of foreach
 loops starting a new loop for every new tag and ending a loop for every
 end tag(to create some sort of 'levels'). I don't know exactly how, else I
 would have written it.

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


More information about the wp-trac mailing list