Hide unrelated maintenance message on update-core when you are running the latest version, and show a link to about.php. see #18467.
git-svn-id: https://develop.svn.wordpress.org/trunk@19441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
32e46ee3b1
commit
16e113586a
@ -131,7 +131,7 @@ function dismissed_updates() {
|
||||
* @return null
|
||||
*/
|
||||
function core_upgrade_preamble() {
|
||||
global $upgrade_error;
|
||||
global $upgrade_error, $wp_version;
|
||||
|
||||
$updates = get_core_updates();
|
||||
?>
|
||||
@ -176,7 +176,12 @@ function core_upgrade_preamble() {
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>';
|
||||
if ( $updates ) {
|
||||
echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>';
|
||||
} else {
|
||||
list( $normalized_version ) = explode( '-', $wp_version );
|
||||
echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( admin_url( 'about.php' ) ), $normalized_version ) . '</p>';
|
||||
}
|
||||
dismissed_updates();
|
||||
|
||||
if ( current_user_can( 'update_plugins' ) )
|
||||
|
Loading…
Reference in New Issue
Block a user