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 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:
1 2 3
remove_filter( 'the_content', 'capital_P_dangit' ); remove_filter( 'the_title', 'capital_P_dangit' ); remove_filter( 'comment_text', 'capital_P_dangit' );