Make WordPress Core


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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.