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):
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.
Examples:
"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).
Author: Kaf Oseo
Categories: WordPress
Comments: (12) · Leave a comment · Comments RSS2 · Trackback URL
Thanks for poiting me in the right direction at the support forum, and for a quick reply!
anna aka the citizenofnowhere
It’s sort of why I hang out over there: to point people in the right direction. Anything else is just mean. And you’re welcome, anna!
Maybe funny to use against spammers, changing well known spamwords into wordpress :-)
Pretty simple plugin but I think it does great. :)
This is a really neat plugin. I’ve been using it with Smilies. However, it appears that the plugin has trouble with 2 replacements on the same line. Do you think you could look into this?
Thanks again, great job, jim
Hi there, I am trying to use your neat plugin with Wordpress 2.0.3 — it doesn’t work :-(. Is it just my stupidity or is it incompatible with Wordpress 2.x? Thanks, e.