diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 5d4d1a578f..965d4700ff 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -894,6 +894,8 @@ function update_core($from, $to) { // Clear the cache to prevent an update_option() from saving a stale db_version to the cache wp_cache_flush(); + // (Not all cache backends listen to 'flush') + wp_cache_delete( 'alloptions', 'options' ); // Remove working directory $wp_filesystem->delete($from, true);