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

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

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 URLs.

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

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' );
Tags: