[wp-trac] [WordPress Trac] #20077: shortcode_parse_atts should not force arguments to be lowercase

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 20 17:31:47 UTC 2012


#20077: shortcode_parse_atts should not force arguments to be lowercase
----------------------------+------------------------------
 Reporter:  fireproofsocks  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  close           |
----------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:3 GaryJ]:
 > http://codex.wordpress.org/WordPress_Coding_Standards#Naming_Conventions

 Right, something like that but for variable strings used as names or IDs
 in the different APIs.

 Replying to [comment:4 fireproofsocks]:
 > ...should standards be strictly or loosely enforced?

 Don't think we can enforce anything for the currently used names/IDs. Many
 already have some sort of sanitization or restrictions anyways.

 It's probably better to discuss this on wpdevel. Thinking we could go with
 something like `[a-z0-9_-]+` that would keep everything nicely readable
 and very easy to sanitize for inclusion in HTML, etc.

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


More information about the wp-trac mailing list