mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
globalize wp_version so Magpie can use it. props Nazgul, hakre. fixes #3996
git-svn-id: http://svn.automattic.com/wordpress/trunk@5859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0311e61389
commit
676ea2ea3c
@ -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 . ')';
|
||||
|
Loading…
Reference in New Issue
Block a user