{"id":2052,"date":"2009-10-21T15:31:47","date_gmt":"2009-10-21T19:31:47","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=2052"},"modified":"2018-04-17T21:03:58","modified_gmt":"2018-04-18T01:03:58","slug":"stop-wordpress-mangling-your-code","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2009\/10\/21\/stop-wordpress-mangling-your-code\/","title":{"rendered":"Stop WordPress Mangling Your Code"},"content":{"rendered":"<p>I had been modifying WordPress&rsquo;s <tt>default-filters.php<\/tt> file to turn off the wptexturize and wpautop filters, but <a href=\"http:\/\/lynnepope.net\/stop-wordpress-mangling-code\">Lynne Pope<\/a> says that you can instead override this at the theme level in <tt>functions.php<\/tt>. This makes it easier to update WordPress, as I no longer have to merge in my changes.<\/p>","protected":false},"excerpt":{"rendered":"<p>I had been modifying WordPress&rsquo;s default-filters.php file to turn off the wptexturize and wpautop filters, but Lynne Pope says that you can instead override this at the theme level in functions.php. This makes it easier to update WordPress, as I no longer have to merge in my changes.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-04-18T01:04:00Z","apple_news_api_id":"bff876eb-00cb-4418-b819-4dcf180e11df","apple_news_api_modified_at":"2018-04-18T01:04:01Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Av_h26wDLRBi4GU3PGA4R3w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1659,96,740],"class_list":["post-2052","post","type-post","status-publish","format-standard","hentry","category-technology","tag-this-blog","tag-web","tag-wordpress"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=2052"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2052\/revisions"}],"predecessor-version":[{"id":2053,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2052\/revisions\/2053"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=2052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=2052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=2052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}