Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#14219 closed enhancement (wontfix)

Making capital_P_dangit completely compliant

Reported by: latz's profile Latz Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Formatting Keywords: has-patch
Focuses: Cc:


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


This patch converts all possible spellings to "WordPress".

Attachments (1)

camelcase.patch (370 bytes) - added by Latz 13 years ago.

Download all attachments as: .zip

Change History (3)

13 years ago

#1 @nacin
13 years ago

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 words word and press 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.

#2 @nacin
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.