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

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 28 08:19:40 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   
--------------------------+-------------------------------------------------
 I expected this to work, but it doesn't:

 {{{
 [tag my-param="value" foo="bar"]Hello world![/tag]
 }}}

 The passed array looks like this:

 {{{
 array(
         0 => 'my-param="value"',
         'foo' => 'bar'
 );
 }}}

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


More information about the wp-trac mailing list