Make WordPress Core

Changeset 14138


Ignore:
Timestamp:
04/18/2010 06:08:40 AM (15 years ago)
Author:
dd32
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r14080 r14138  
    11131113        if ( is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
    11141114            add_site_option( 'siteurl', '' );
     1115    }
     1116
     1117    // #11866 (Convert the taxonomy children cache into a transient) - Remove old cache.
     1118    if ( $wp_current_db_version < 14138 ) {
     1119        foreach ( get_taxonomies( array('hierarchical' => true) )  as $taxonomy )
     1120            delete_option($taxonomy . '_children');
    11151121    }
    11161122
  • trunk/wp-includes/version.php

    r14111 r14138  
    1616 * @global int $wp_db_version
    1717 */
    18 $wp_db_version = 14101;
     18$wp_db_version = 14138;
    1919
    2020/**
Note: See TracChangeset for help on using the changeset viewer.