From e153f957ade910a7017fa1911d7ddd2d2807cf31 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 13 Jun 2019 16:42:18 +0000 Subject: [PATCH] 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 --- src/wp-admin/update-core.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index c1bf6e7aee..779398429f 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -204,7 +204,9 @@ function core_upgrade_preamble() { } } echo ''; - } else { + } + + if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { echo '

'; _e( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress Codex page.' ); echo '

';