WordPress upgrade

May 10th, 2007 by Ciarán Leave a reply »

I’m about to attempt to upgrade WordPress to the latest version (v2.1.3), so the site may be unavailable for a little while. Hopefully this will go smoothly :)

UPDATE: Looks like things are working well so far. I’ve had to tweak the template stuff to make things work, and the Google Sitemap Generator plugin doesn’t seem to want to work, other than that looks good!

Another Update: Sorted out the Google Sitemap Generator problem. I had to tweak sitemap.php to cater for a duplicate declaration for the js_escape() function. Here’s what it looks like now (it’s at the very beginning of sitemap.php):


if(!function_exists('js_escape')) {
// Escape single quotes, specialchar double quotes, and fix line endings.
function js_escape($text) {
$text = wp_specialchars($text, 'double');
$text = str_replace(''', "'", $text);
return preg_replace("/\r?\n/", "\\n", addslashes($text));
}
}

So, all back to normal now :)

Advertisement

Comments are closed.