From bb2908d613db48d18e2a68296cd7ce806dcde099 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 12 Sep 2013 21:13:18 +0000 Subject: [PATCH] Clear all transients (regardless of expiration) on all database upgrades. see #20316. git-svn-id: https://develop.svn.wordpress.org/trunk@25416 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/schema.php | 2 ++ src/wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index d5177faf66..26063564b1 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -546,6 +546,8 @@ function populate_options() { // delete obsolete magpie stuff $wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'"); + // clear transient data + $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_%' OR option_name LIKE '\_site\_transient\_%'" ); } /** diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php index dd38823abb..f8a97f84fd 100644 --- a/src/wp-includes/version.php +++ b/src/wp-includes/version.php @@ -11,7 +11,7 @@ $wp_version = '3.7-alpha-25343'; * * @global int $wp_db_version */ -$wp_db_version = 25179; +$wp_db_version = 25416; /** * Holds the TinyMCE version