gordon.dewis.ca - Random musings from Gordon


Upgrading to WordPress 2.0.3

June 02, 2006 @ 18:02 By: gordon Category: General

I noticed in the admin dashboard this morning that a new minor release of WordPress, the blogging system I use. So, I dutifully downloaded the package and upgraded things. Like previous upgrades, it went fairly smoothly, except for a small problem with the way it was rendering dates on entries. For example, today’s date was being rendered as 2${1}June 2006.

After checking to make sure it wasn’t something I’d done, I started comparing the code from the new version of WordPress with the previous version and quickly found the offending piece of code around line 35 in wp-includes/functions.php. I checked the 5 lines of code in question back to the way they were in the previous version and everything started working properly again.

So, I checked the WordPress website to see if it had been reported by others and, sure enough, about 8 people had posted messages about it, but no one had come up with a solution. I posted my solution and almost immediately other people started posting messages that it had worked for them, too.

Were I running the latest and greatest version of PHP on the server, the code in 2.0.3 would have worked as expected. But I’ve long given up running bleeding edge releases. Changes in code like this should take into consideration slightly older versions of software. This could have been avoided with a simple if statement.

Still, this is the first real annoyance I’ve experienced since I started using WordPress, so I can’t complain about it that much.

One Response to “Upgrading to WordPress 2.0.3”

  1. rheck says:

    I agree, they should at least of mentioned that it now requires php 4.3.0 to work properly. Hopefully, this will not be a re-occurring theme with later releases.

    Also not that it really matters but Nazgul identified the issue was with ticket #2564 and the fix was to revert the changes on the 2nd and 3rd post of that thread respectively.


  1. gordon.dewis.ca » WordPress 2.0.4 (August 02, 2006 @ 23:23)