Ensure we always show the current version in the footer if the last update check failed. Fixes #4867 props Viper007Bond
git-svn-id: http://svn.automattic.com/wordpress/trunk@5987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a997f588b
commit
f9e28418ce
|
@ -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( '| <strong>'.__( 'Your WordPress %s is out of date. <a href="%s">Please update</a>.' ).'</strong>', $GLOBALS['wp_version'], $cur->url );
|
||||
break;
|
||||
|
||||
|
||||
case 'latest' :
|
||||
default :
|
||||
return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] );
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue