Skip to content

Commit

Permalink
Globalise wp_version so Magpie can use it. props Nazgul, hakre. Fixes…
Browse files Browse the repository at this point in the history
… #3996 for 2.2.3

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
westi committed Aug 28, 2007
1 parent 4de37d4 commit fd1fc3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-includes/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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;
Expand Down Expand Up @@ -591,7 +591,7 @@ function init () {
}

if ( !defined('MAGPIE_USER_AGENT') ) {
$ua = 'WordPress/' . $wp_version;
$ua = 'WordPress/' . $GLOBALS['wp_version'];

if ( MAGPIE_CACHE_ON ) {
$ua = $ua . ')';
Expand Down

0 comments on commit fd1fc3f

Please sign in to comment.