From c441bc3d961a41af1faccf1cc97f9072c6461be8 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 10 Aug 2007 08:07:53 +0000 Subject: [PATCH] globalize wp_version so Magpie can use it. props Nazgul, hakre. fixes #3996 git-svn-id: https://develop.svn.wordpress.org/trunk@5859 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 44c9f5cc41..ac747a2d9a 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -11,7 +11,7 @@ do_action('load_feed_engine'); define('RSS', 'RSS'); define('ATOM', 'Atom'); -define('MAGPIE_USER_AGENT', 'WordPress/' . $wp_version); +define('MAGPIE_USER_AGENT', 'WordPress/' . $GLOBALS['wp_version']); class MagpieRSS { var $parser; @@ -595,7 +595,7 @@ function init () { } if ( !defined('MAGPIE_USER_AGENT') ) { - $ua = 'WordPress/' . $wp_version; + $ua = 'WordPress/' . $GLOBALS['wp_version']; if ( MAGPIE_CACHE_ON ) { $ua = $ua . ')';