Post thumbnails changes

WordPress

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. :)

Post thumbnails changes
This entry was posted in WordPress and tagged , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Digging Into WordPress Book

4 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.

  3. George Barn freegplthemes.com
    Posted May 3, 2010 at 9:17 am | Permalink

    I think pulling source from SVN to production site isn’t good ideas, since little changes can make huge difference. Or I just too scare to do that. LOL

  4. Kenneth visualbasic-source-code.com
    Posted May 30, 2010 at 9:36 am | Permalink

    You site works fine. For me I always rely on wordpress plugin with highest rating and do some research about the plugin before installing my blog.

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