[wp-meta] [Making WordPress.org] #1634: Shortcode attributes get transferred to lowercase

Making WordPress.org noreply at wordpress.org
Tue Mar 15 11:34:04 UTC 2016

#1634: Shortcode attributes get transferred to lowercase
 Reporter:  DekiGk  |      Owner:
     Type:  task    |     Status:  new
 Priority:  normal  |  Milestone:
Component:  Codex   |   Keywords:  needs-patch
 Hello WP team,

 In the WP codex it clearly states that we can use uppercase or lowercase
 letters for our shortcode attribute names:

 "Attribute names are optional and should contain only the following
 characters for compatibility across all platforms:

 Upper-case and lower-case letters: A-Z a-z
 Digits: 0-9
 Underscore: _
 Hyphen: - (Not allowed before version 4.3.0)"


 However, when I was doing one shortcode today the WP seems to have
 transferred my "current_post_ID" to "current_post_id".

 Through the help of my WordPress Serbia facebook network I have found out
 that this is because the function: "get_shortcode_atts_regex" has
 strtolower while parsing.

 Can we change the codex to reflect that?

 Best Regards,
 Dejan Kostevski

Ticket URL: <https://meta.trac.wordpress.org/ticket/1634>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list