Invalidate the 'update_core' Update check transient when $wp_version changes. See #25831
git-svn-id: https://develop.svn.wordpress.org/trunk@26188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5de39fc2f1
commit
c7710e4238
@ -31,6 +31,10 @@ function wp_version_check( $extra_stats = array() ) {
|
||||
$current = get_site_transient( 'update_core' );
|
||||
$translations = wp_get_installed_translations( 'core' );
|
||||
|
||||
// Invalidate the transient when $wp_version changes
|
||||
if ( is_object( $current ) && $wp_version != $current->version_checked )
|
||||
$current = false;
|
||||
|
||||
if ( ! is_object($current) ) {
|
||||
$current = new stdClass;
|
||||
$current->updates = array();
|
||||
|
Loading…
Reference in New Issue
Block a user