WP plugin: W-P

posted on January 22, 2005  (Update: January 24, 2005)

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 WordPres Word Pres WorldPress 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.

Update: Release version 1.1 (macmanx edition) adds the easy ability to insert custom text to correct. Here’s the lowdown from the directions found in the plugin:

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

anna.
Comment » January 22, 2005 @ 4:16 pm

Thanks for poiting me in the right direction at the support forum, and for a quick reply!

anna aka the citizenofnowhere

Kaf
Comment » January 22, 2005 @ 10:16 pm

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!

Ronald
Comment » January 29, 2005 @ 8:11 am

Maybe funny to use against spammers, changing well known spamwords into wordpress :-)

Mr. Dew
Comment » January 31, 2005 @ 6:30 pm

Pretty simple plugin but I think it does great. :)

Jim
Comment » November 4, 2005 @ 10:49 am

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

Emanuel
Comment » June 25, 2006 @ 7:55 am

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.

 

* Required field (e-mail is not published). Breaks and paragraphs are automatic. HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>






You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser