Use GLOBALS. see #18467.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-12-01 04:49:57 +00:00
parent 2cee887c0b
commit d9983a790c
1 changed files with 1 additions and 1 deletions

View File

@ -554,5 +554,5 @@ window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
include(ABSPATH . 'wp-admin/admin-footer.php');
exit();
}
if ( version_compare( $GLOBALS['wp_version'], '3.3', '<' ) && 'update-core.php' == $pagenow )
if ( version_compare( $GLOBALS['wp_version'], '3.3', '<' ) && 'update-core.php' == $GLOBALS['pagenow'] )
add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );