Daily Tip: How to Remove the Capital ‘P’ Function From WordPress 3.0

July 10, 2010  | 
4 Comments

In case you’ve missed it, there’s been a bit of a debate going on concerning the new capital_P_dangit() function that was written into WordPress before 3.0 was released. This function changes all instances of WordPress spelled with a lowercase P to an uppercase P. Many users don’t wish to have their content changed and beyond that there have been several bugs associated with this function, such as broken URL’s.

For a full explanation of the issue, check out Justin Tadlock’s article, from which I gleaned the fix to the problem:

Add this to your theme’s functions.php file:

remove_filter( 'the_content', 'capital_P_dangit' );
remove_filter( 'the_title', 'capital_P_dangit' );
remove_filter( 'comment_text', 'capital_P_dangit' );

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - Turn any WordPress page into a fully featured wiki!

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - Send beautiful html email newsletters, from WordPress!

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

4 Responses to Daily Tip: How to Remove the Capital ‘P’ Function From WordPress 3.0

  1. Why the heck would they put that in? Is there anyone over 15 years old that wants their content to look like a 1998 gamer handle?

  2. Pingback: L’hebdo WordPress : P Majuscule – Astuces – Mobiles | WordPress Francophone

  3. Damn my new links are broken in all the instances where the WordPress occurs !

    I have stopped using the term but instead I am using it as word-press :D

  4. hi, i hope you can help? (pretty please)

    on my clients site it removes all lowercase p in the content. i installed the plugin and it didn’t work.

    http://www.harleystreetcoaching.org.uk/index.php/

    thanks
    chris

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting