WP plugin: W-P
W-P is a WordPress plugin. And an extremely fixated one at that, for its purpose is simple: fix typical mistypes of the word “WordPress” in posts and comments (it now does more than that, and can be customized with your own words; see the update). So if you *accidentally* write it as Wordpress, or wordpress, or even WoRdPrEsS, it sets things right. Yes, not an extremely “helpful” plugin—at least not in any real sense of that word.
W-P will do this for the content of a post, post title, and comments. The plugin is very easy to install and use: Download the zip file and extract w-p.php from it, upload that file to your wp-contents/plugins/ folder, and activate W-P under the Plugins admin page. That’s it! No template tags or configuration required. Amazing, huh?
Additionally, W-P will hit the following misspellings (includes capitalization mismatches on these):
- Word Press
- Word Pres
- World Press
- The coolest, most fantastic blogging software on the face of the Earth! (Consider this the easter egg…)
It should also take account of urls and the like. It doesn’t modify the original text, only what’s displayed on your blog; this means it will not alter the post “slug” if WordPress is spelled incorrectly in a title, but you’re certainly free to try and convince me its needed…
W-P is dedicated to NuclearMoose, who didn’t realize I was being serious. Well, maybe not completely serious.
The $my_w_p_text array is where you add replacement entries of your own. Use the syntax:
"Correct" => "correct|not correct|incorrect|wrong",
Make sure to separate each to be fixed name, word or phrase with a vertical bar: | . Also, as W-P fixes capitalization mismatches, provide a correct instance of the word—W-P is case insensitive, which is why they’re listed in all lowercase.
"Ronald" => "ronald",
"McDonald's" => "mcdonald('|)s|mc donald('|)s|macdonald('|)s",
"SuperSize" => "supersize|super size",
Note: You can use regular expressions to match elements in to be fixed text (as displayed in the “McDonald’s” example above).