[wp-trac] [WordPress Trac] #33593: Make shortcodes case insensitive

WordPress Trac noreply at wordpress.org
Sat Aug 29 00:10:18 UTC 2015


#33593: Make shortcodes case insensitive
--------------------------+-----------------------------
 Reporter:  archon810     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Shortcodes    |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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)?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33593>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list