Make WordPress Core


Ignore:
Timestamp:
03/16/2010 05:17:55 PM (14 years ago)
Author:
wpmuguru
Message:

first pass on optional global terms, see #12589

File:
1 edited

Legend:

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

    r13713 r13715  
    660660
    661661    if ( !is_multisite() ) {
    662 
    663         $wpdb->query( "INSERT INTO $wpdb->sitecategories (cat_id, cat_name, category_nicename, last_updated) SELECT term_id, `name`, slug, NOW() FROM $wpdb->terms" );
    664 
    665662        $site_admins = array( $site_user->user_login );
    666663        $users = get_users_of_blog();
     
    709706        'upload_space_check_disabled' => '0',
    710707        'subdomain_install' => intval( $subdomain_install ),
     708        'global_terms_enabled' => global_terms_enabled() ? '1' : '0'
    711709    );
    712     if ( is_multisite() )
    713         $sitemeta[ 'global_terms_enabled' ] = get_site_option( 'global_terms_enabled', '0' );
    714     else
    715         $sitemeta[ 'global_terms_enabled' ] = '0';
    716710
    717711    $insert = '';
Note: See TracChangeset for help on using the changeset viewer.