Use GLOBALS. see #18467.

git-svn-id: https://develop.svn.wordpress.org/trunk@19527 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-12-01 04:49:57 +00:00
parent 099603c7f2
commit 91ed8fd115
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' );