{"id":35155,"date":"2010-07-10T16:32:49","date_gmt":"2010-07-10T20:32:49","guid":{"rendered":"http:\/\/wpmu.org\/?p=35155"},"modified":"2012-10-12T14:31:06","modified_gmt":"2012-10-12T18:31:06","slug":"daily-tip-how-to-remove-the-capital-p-function-from-wordpress-3-0","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-how-to-remove-the-capital-p-function-from-wordpress-3-0\/","title":{"rendered":"How to Remove the Capital &#8216;P&#8217; Function From WordPress 3.0"},"content":{"rendered":"<p><a rel=\"lightbox[35155]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2010\/07\/blogicons_wordpress.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-35157\" title=\"blogicons_wordpress\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2010\/07\/blogicons_wordpress.png\" alt=\"Post image\" aria-hidden=\"true\" width=\"128\" height=\"128\" \/><\/a>In case you&#8217;ve missed it, there&#8217;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.<\/p>\n<p>This function changes all instances of WordPress spelled with a lowercase P to an uppercase P. Many users don&#8217;t wish to have their content changed and beyond that, there have been several bugs associated with this function, such as broken URLs.<\/p>\n<p>For a full explanation of the issue, check out Justin Tadlock&#8217;s <a href=\"http:\/\/justintadlock.com\/archives\/2010\/07\/08\/lowercase-p-dangit\" rel=\"noopener\" target=\"_blank\">article<\/a>, from which I gleaned the fix to the problem:<\/p>\n<p>Add this to your theme&#8217;s <i>functions.php<\/i> file:<\/p>\n<pre>remove_filter( 'the_content', 'capital_P_dangit' );\r\nremove_filter( 'the_title', 'capital_P_dangit' );\r\nremove_filter( 'comment_text', 'capital_P_dangit' );<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In case you&#8217;ve missed it, there&#8217;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&#8217;t wish to have their content changed and beyond [&hellip;]<\/p>\n","protected":false},"author":4099,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[1,557,235,263],"tags":[778],"tutorials_categories":[],"class_list":["post-35155","post","type-post","status-publish","format-standard","hentry","category-news-community","category-development","category-misc","category-tutorials","tag-functions"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/35155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=35155"}],"version-history":[{"count":2,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/35155\/revisions"}],"predecessor-version":[{"id":183108,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/35155\/revisions\/183108"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=35155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=35155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=35155"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=35155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}