Craig Murphy: author, blogger, community evangelist, developer, speaker

The Social Programmer

March 21st, 2006 at 1:48 am

Upgraded to WordPress 2.02

in: General

After deliberating for a month or two, I’ve finally upgraded this blog to WordPress 2.02. A Spam Karma upgrade was applied too.

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’s new Preview feature. Easily achieved using something similar to this (lines 1 and 9 are the lines to look out for):

  1. <?php global $wp_query; if (!$wp_query->is_preview): ?>
  2.  
  3. <script type=“text/javascript”><!–
  4. google_ad_client = “”;
  5. google_ad_width = 120;
  6. google_ad_height = 240;
  7. google_ad_format = “120×240_as”;
  8. [snip]
  9. <?php endif; ?>

More about the AdSense issue can be found here and here.

What was the first thing I did after I installed WordPress 2.02? I went off and installed CodeSnippet. 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.

Worryingly, my first post, this one, when published…didn’t appear on the blog…it vanished.

-
5

 

RSS feed for comments on this post | TrackBack URI