Post thumbnails changes

If you visited my site in the last 9 hours and found it displaying nothing but an error message, my apologies. It’s part of the danger of running my site out of the WordPress SVN trunk (i.e., beta code), and taking advantage of new features.

My site automatically pulls in the latest code changes from SVN at midnight. And it seems that sometime yesterday, all of the post_image_* functions were renamed to post_thumbnail_*, and I failed to wrap one of my function calls with function_exists() protection. So from midnight until about 9:00am, my site was bombing out with a fatal call to a non-existent function. Oops!

Anyhow, I’ve fixed it (and added in the protective wrapper), so things are back to normal now.

Oh, and all of you who have written tutorials about how to use the new post thumbnail features in your themes? Time to rewrite them. :)

Stumble It!
Post thumbnails changes

Related posts:

  1. WordPress 2.9 Features
    "This site is now running on WordPress 2.9-rare (which is our “pre-alpha” designation, for those of you who don’t know). WP 2.9 is in “feature..."
  2. Auto-fail
    "This is not the original WordPress Wednesday post that I had intended to make, picking up from last week about changes to my site. It’s..."
  3. Post Meta
    " Spent some lunch hours this week working on “post meta” hacks for WordPress. This will allow users to add arbitrary extra fields to their..."
  4. del.icio.us daily blog post fixer plugin
    " I mentioned previously that I wanted to make a WordPress plugin that would touch up the posts created by the del.icio.us “daily blog post”..."
  5. WordPress theme licensing
    "There is finally an official answer to the question of whether or not WordPress themes must “inherit” the GPL license that WordPress itself uses. Matt..."
This entry was posted in WordPress and tagged , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Jan Dembowski wp.dembowski.net
    Posted December 12, 2009 at 7:34 am | Permalink

    “My site automatically pulls in the latest code changes from SVN at midnight.”

    You’re a braver man than I am Charlie Brown…

    Aside from wrapping the functions in an if…then statements, any problems with the SVN version? I’m using the version from SVN but have not updated my theme to use the new functions.

  2. Lars Vraa tripwiremagazine.com
    Posted December 21, 2009 at 5:30 pm | Permalink

    wow…pulling source from SVN to your production site! YES you are BRAVE ;) It’s certainly best practice to have continued integration like this but I guess it should take place in a integration environment wher you could run a few automated test….you seam like geek enough to set that up also… Anyway thanks for the information I was getting confused about the tuts using different function calls.

6 Trackbacks

  1. By WordPress Picks [12/13] | Techtites on December 12, 2009 at 10:15 pm

    [...] code on that post hasn't been updated. Dougal in a post today, mentioned all of the post_image_* functions were renamed to [...]

  2. By I Twitt – 21.03 « RunBay.net on December 14, 2009 at 1:03 pm
  3. By Twitter Weekly Updates for 2009-12-14 « RunBay.net on December 14, 2009 at 2:19 pm
  4. By Twitter Updates for 2009-12-15 « RunBay.net on December 15, 2009 at 12:11 pm
  5. [...] From the file wp-includes/post-image-template.php you will have 4 new functions available to control rendering of the post image in your theme (was actually called xxx_post_image until recently but a late code change turned image into thumbnail…): [...]

  6. [...] From the file wp-includes/post-image-template.php you will have 4 new functions available to control rendering of the post image in your theme (was actually called xxx_post_image until recently but a late code change turned image into thumbnail…): [...]

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Subscribe

  • Follow Me

    Twitter  Facebook  Flickr  Last.fm  LinkedIn  StumbleUpon  Technorati  Delicious  
  • Referrals

    Sign up for Text Link Ads and earn money from your blog.
  • Lifestream