Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14219 closed enhancement (wontfix)

Making capital_P_dangit completely wpcamelcase.com compliant

Reported by: latz's profile 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)

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

Download all attachments as: .zip

Change History (3)

@Latz
14 years ago

#1 @nacin
14 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
14 years ago

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