WordPress.org

Make WordPress Core

Changeset 45532


Ignore:
Timestamp:
06/13/2019 04:42:18 PM (22 months ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r45480 r45532  
    205205        }
    206206        echo '</h2>';
    207     } else {
     207    }
     208
     209    if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
    208210        echo '<div class="notice notice-warning"><p>';
    209211        _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.' );
Note: See TracChangeset for help on using the changeset viewer.