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
This commit is contained in:
parent
effcdff92b
commit
5bda3562a4
|
@ -4,9 +4,6 @@
|
||||||
|
|
||||||
function core_update_footer( $msg ) {
|
function core_update_footer( $msg ) {
|
||||||
$cur = get_option( 'update_core' );
|
$cur = get_option( 'update_core' );
|
||||||
|
|
||||||
if ( ! isset( $cur->response ) )
|
|
||||||
return $msg;
|
|
||||||
|
|
||||||
switch ( $cur->response ) {
|
switch ( $cur->response ) {
|
||||||
case 'development' :
|
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 );
|
return sprintf( '| <strong>'.__( 'Your WordPress %s is out of date. <a href="%s">Please update</a>.' ).'</strong>', $GLOBALS['wp_version'], $cur->url );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case 'latest' :
|
case 'latest' :
|
||||||
|
default :
|
||||||
return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] );
|
return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue