[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:42:43 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 fireproofsocks):
My recommendation here is to allow parameter names to use anything that's
a viable PHP variable name. That just makes sense in this case, similar
to using extract(). From the PHP docs:
"A valid variable name starts with a letter or underscore, followed by any
number of letters, numbers, or underscores. As a regular expression, it
would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'"
http://php.net/manual/en/language.variables.basics.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20077#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list