From 5bda3562a43f62f2780883fc17bbe3c13536d7d1 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 30 Aug 2007 16:25:50 +0000 Subject: [PATCH] Ensure we always show the current version in the footer if the last update check failed. Fixes #4867 props Viper007Bond git-svn-id: https://develop.svn.wordpress.org/trunk@5987 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/update.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index d7cd8a1097..77617815e1 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -4,9 +4,6 @@ function core_update_footer( $msg ) { $cur = get_option( 'update_core' ); - - if ( ! isset( $cur->response ) ) - return $msg; switch ( $cur->response ) { case 'development' : @@ -17,8 +14,8 @@ function core_update_footer( $msg ) { return sprintf( '| '.__( 'Your WordPress %s is out of date. Please update.' ).'', $GLOBALS['wp_version'], $cur->url ); break; - case 'latest' : + default : return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); break; }