Opened 14 years ago
Closed 14 years ago
#14219 closed enhancement (wontfix)
Making capital_P_dangit completely wpcamelcase.com compliant
Reported by: | Latz | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
Matt's attempt to extinguish the wrong spelling of WordPress only works with the string "Wordpress" but there are many other ways to spell the word wrongly:
Wordpress, Word Press, wordPress, WORDPRESS, or WoRdPrEsS
(see wpcamelcase.com)
This patch converts all possible spellings to "WordPress".
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thanks for the patch, but we're just looking to handle the uppercase P.
If you are interested in including this in a plugin, I would however suggest that instead of
\s*
, it instead looks for exactly zero or one space, like([ ])?
. However, this could pick up false positives if the wordsword
andpress
are adjacent, and it also ignores word boundaries. Looking for case sensitive 'Wordpress' (and, with a patch on #13971, also checking the character before) would produce negligible false positives.