Opened 11 years ago
Last modified 7 years ago
#33593 new feature request
Make shortcodes case insensitive
| Reported by: | archon810 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Shortcodes | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion |
| Cc: | Focuses: |
Description
Right now, shortcodes are case sensitive. For example, [thanks]Guy Incognito[/thanks] works but [Thanks]Guy Incognito[/Thanks] doesn't.
For me, as a developer, it makes sense. For my writers, who have complained about [Thanks] and the like not working, it doesn't.
http://wordpress.stackexchange.com/questions/102375/are-shortcodes-case-sensitive shows that shortcodes are indeed case sensitive. But why? Why wouldn't the regex have the i modifier and become insensitive for the shortcode name itself (I'm not talking about shortcode parameters, just the name)?
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The roadmap concepts currently in discussion will move us away from parsing shortcode names with regex. A possible consideration is to force inputs to lower case instead. There could be other concerns about namespace conflicts, but this feature is a possibility.