From 48e1a34293a81a8e93c513d68a3b3d1f10722eaf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Aug 2006 04:59:23 +0100 Subject: better new version detection (fix) --- functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 25b7dff76..30c59e9d6 100644 --- a/functions.php +++ b/functions.php @@ -2574,8 +2574,10 @@ $latest_version = trim(preg_replace("/(Milestone)|(completed)/", "", $latest_item["title"])); - $release_url = sanitize_rss($last_item["link"]); - $content = sanitize_rss($last_item["description"]); + $release_url = sanitize_rss($latest_item["link"]); + $content = sanitize_rss($latest_item["description"]); + + $latest_version = "2.0"; if (version_compare(VERSION, $latest_version) == -1) { return "
-- cgit v1.2.3