Delete old hierarchical taxonomy children cache' on upgrade. Fixes #11866

git-svn-id: https://develop.svn.wordpress.org/trunk@14138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-04-18 06:08:40 +00:00
parent d76c69f054
commit 148e92a58c
2 changed files with 7 additions and 1 deletions

View File

@ -1114,6 +1114,12 @@ function upgrade_300() {
add_site_option( 'siteurl', '' );
}
// #11866 (Convert the taxonomy children cache into a transient) - Remove old cache.
if ( $wp_current_db_version < 14138 ) {
foreach ( get_taxonomies( array('hierarchical' => true) ) as $taxonomy )
delete_option($taxonomy . '_children');
}
// 3.0-alpha nav menu postmeta changes. can be removed before release. // r13802
if ( $wp_current_db_version >= 13226 && $wp_current_db_version < 13974 )
$wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key IN( 'menu_type', 'object_id', 'menu_new_window', 'menu_link', '_menu_item_append', 'menu_item_append', 'menu_item_type', 'menu_item_object_id', 'menu_item_target', 'menu_item_classes', 'menu_item_xfn', 'menu_item_url' )" );

View File

@ -15,7 +15,7 @@ $wp_version = '3.0-beta1';
*
* @global int $wp_db_version
*/
$wp_db_version = 14101;
$wp_db_version = 14138;
/**
* Holds the TinyMCE version