[wp-trac] Re: [WordPress Trac] #9405: Shortcode parameter names can't have dashes in them

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 3 00:15:45 GMT 2009


#9405: Shortcode parameter names can't have dashes in them
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous     
     Type:  defect (bug)  |      Status:  new           
 Priority:  lowest        |   Milestone:  Future Release
Component:  General       |     Version:  2.8           
 Severity:  minor         |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------

Comment(by hakre):

 function is shortcode_parse_atts() in wp-includes/shortcodes.php

 the parsing is done by regular expressions.

 word limiters are used, I guess dashes are not supported by them.

 I wonder if it makes sense. This problem can for easier besolved by
 clarifying the documentation, the regular expression pattern is already
 quite complex.

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


More information about the wp-trac mailing list