WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/28/2013 02:15:55 AM (6 years ago)
Author:
dd32
Message:

Core Updates: Fix a case where options (db_version specifically) can end up with stale values in the cache after a update is performed. Fixes #26173 for trunk.

File:
1 edited

Legend:

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

    r26397 r26448  
    893893    wp_remote_post($db_upgrade_url, array('timeout' => 60));
    894894
     895    // Clear the cache to prevent an update_option() from saving a stale db_version to the cache
     896    wp_cache_flush();
     897
    895898    // Remove working directory
    896899    $wp_filesystem->delete($from, true);
Note: See TracChangeset for help on using the changeset viewer.