Globalise wp_version so Magpie can use it. props Nazgul, hakre. Fixes #3996 for 2.2.3
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4de37d45c9
commit
fd1fc3f93c
|
@ -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;
|
||||
|
@ -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 . ')';
|
||||
|
|
Loading…
Reference in New Issue