{"id":252,"date":"2006-03-21T01:48:57","date_gmt":"2006-03-21T00:48:57","guid":{"rendered":"http:\/\/www.craigmurphy.com\/blog\/?p=252"},"modified":"2006-03-21T01:50:48","modified_gmt":"2006-03-21T00:50:48","slug":"test-2","status":"publish","type":"post","link":"https:\/\/www.craigmurphy.com\/blog\/?p=252","title":{"rendered":"Upgraded to WordPress 2.02"},"content":{"rendered":"<p>After deliberating for a month or two, I&#8217;ve finally upgraded this blog to WordPress 2.02.  A Spam Karma upgrade was applied too.<\/p>\n<p>One thing I would note, and this is a point well made elsewhere, if you are using Google AdSense make sure that your AdSense code is protected from WordPress&#8217;s new Preview feature.  Easily achieved using something similar to this (lines 1 and 9 are the lines to look out for):<\/p>\n<p>[code lang=&#8221;PHP&#8221;]<br \/>\n< ?php global $wp_query; if (!$wp_query->is_preview): ?><\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"\";\ngoogle_ad_width = 120;\ngoogle_ad_height = 240;\ngoogle_ad_format = \"120x240_as\";\n[snip]\n< ?php endif; ?>\n[\/code]\n\nMore about the AdSense issue can be found <a href=\"http:\/\/error.wordpress.com\/2005\/12\/27\/adsense-on-wordpress-20\">here<\/a> and <a href=\"http:\/\/error.wordpress.com\/2005\/12\/27\/adsense-on-wordpress-20\/\">here<\/a>.\n\nWhat was the first thing I did after I installed WordPress 2.02?  I went off and installed <a href=\"http:\/\/blog.enargi.com\/codesnippet\/\">CodeSnippet<\/a>.  Then, and I think this is very important, I turned off the HTML\/WYSIWYG editor - it's just a pest, slow, and looks to be buggy.\n\nWorryingly, my first post, this one, when published...didn't appear on the blog...it vanished.<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8230;but was it worth it?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":0,"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}