When WordPress 3.0 came out, Matt did something silly. He added some code into WordPress core that replaces all instances of WordPress with WordPress. See the difference? Look again, the P in second one is capital. Well, that is the way it is meant to be.
So what is the big deal?
At first look, its so silly. And if it was executed well, no one would have even noticed that. But that’s not how things are now. Apparently, this code even checks the permalinks and breaks them. Its that bad. I am pretty sure Matt didn’t see any of it coming.
There is a flame war going on in the community. Here is what you need to know:
- The code literally breaks things like URLs on some sites. For example, suppose you installed WordPress in a /Wordpress directory. That would cause all kinds of trouble with things like images.
- This function is effectively changing what people write, and WordPress should not have editorial control over the content of anyone’s blog.
- The code was committed to WordPress without a Trac ticket, so it wasn’t left open to community discussion beforehand.
- Matt’s responses seem to dismiss the very community of people that help make WordPress what it is.
Source: Lowercase p, dangit!
Checkout the above source if you need links to have a look at the flame war.
Fixing the Capital_P_Dangit()
Open up your functions.php in your theme folder and add the following lines anywhere in the php, i.e before the closing ?>
remove_filter( 'the_content', 'capital_P_dangit' );
remove_filter( 'the_title', 'capital_P_dangit' );
remove_filter( 'comment_text', 'capital_P_dangit' );
Source: Removing the Uppercase P Filter
Some Dangit Fun!
- Capitalp.org – P fo ‘Pure Evil’. Refresh this page for subtle funny quotes.
- No Comic Sans, Dangit – A new WordPress plugin that will remove and replace all instance of Comic Sans. FYI, Comic Sans is a hated font.
Now we are talking!
Update: A new version of the fix is available here.