WordPress.org

Make WordPress Core

Changeset 26188


Ignore:
Timestamp:
11/15/2013 02:34:37 AM (7 years ago)
Author:
dd32
Message:

Invalidate the 'update_core' Update check transient when $wp_version changes. See #25831

File:
1 edited

Legend:

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

    r26149 r26188  
    3131    $current = get_site_transient( 'update_core' );
    3232    $translations = wp_get_installed_translations( 'core' );
     33
     34    // Invalidate the transient when $wp_version changes
     35    if ( is_object( $current ) && $wp_version != $current->version_checked )
     36        $current = false;
    3337
    3438    if ( ! is_object($current) ) {
Note: See TracChangeset for help on using the changeset viewer.