[wp-trac] [WordPress Trac] #9045: allow shortcode to accept unpaired attributes

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 4 20:14:36 GMT 2009

#9045: allow shortcode to accept unpaired attributes
 Reporter:  hailin        |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:           
 Current shortcode doesn't allow format such as:
 [shortcode ryan loc=vt s=poet] which contains unpaired attr

 there are many cases where some attrs don't have names - so with current
 shortcode req, we can not use it, and it creates other issues:  in
 wp_trim_excerpt we strip_shortcodes, but we left out some because not all
 shortcodes can be added in the first place, causing issues in tag, or

 I propose to assign default numeric index to unpaired attributes.

Ticket URL: <http://trac.wordpress.org/ticket/9045>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list