Make WordPress Core

Ticket #26173: 26173.diff

File 26173.diff, 560 bytes (added by dd32, 11 years ago)
  • src/wp-admin/includes/update-core.php

     
    887887        $db_upgrade_url = admin_url('upgrade.php?step=upgrade_db');
    888888        wp_remote_post($db_upgrade_url, array('timeout' => 60));
    889889
     890        // Clear the cache to prevent an update_option() from saving a stale db_version to the cache
     891        wp_cache_flush();
     892
    890893        // Remove working directory
    891894        $wp_filesystem->delete($from, true);
    892895