Make WordPress Core

Opened 5 years ago

Closed 5 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:


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)

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

Download all attachments as: .zip

Change History (3)

@Latz5 years ago

comment:1 @nacin5 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.

comment:2 @nacin5 years ago

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