Fix displaying of the "An updated version of WordPress is available." notice when running the latest nightly build. Note that it is still displayed when running a local build or from /src
.
Props afragen, audrasjb, SergeyBiryukov. Fixes #45202. git-svn-id: https://develop.svn.wordpress.org/trunk@45532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5eb394329a
commit
e153f957ad
@ -204,7 +204,9 @@ function core_upgrade_preamble() {
|
||||
}
|
||||
}
|
||||
echo '</h2>';
|
||||
} else {
|
||||
}
|
||||
|
||||
if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
|
||||
echo '<div class="notice notice-warning"><p>';
|
||||
_e( '<strong>Important:</strong> Before updating, please <a href="https://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="https://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.' );
|
||||
echo '</p></div>';
|
||||
|
Loading…
Reference in New Issue
Block a user