WordPress.org

Make WordPress Core

Ticket #11816: 11816.2.diff

File 11816.2.diff, 1.6 KB (added by nacin, 4 years ago)

Some fixes for r12880

  • wp-admin/includes/schema.php

     
    657657                /* translators: Default category slug */ 
    658658                $cat_slug = sanitize_title( _x( 'Uncategorized', 'Default category slug' ) ); 
    659659 
    660                 $wpdb->insert( $wpdb->sitecategories, array( 'site_id' => $network_id, 'cat_ID' => 1, 'cat_name' => __('Uncategorized'), 'category_nicename' => $cat_slug, 'last_updated' => current_time( 'mysql', true ) ) ); 
     660                $wpdb->insert( $wpdb->sitecategories, array( 'cat_ID' => 1, 'cat_name' => __('Uncategorized'), 'category_nicename' => $cat_slug, 'last_updated' => current_time( 'mysql', true ) ) ); 
    661661 
    662662                /* translators: Default link category slug */ 
    663663                $cat_slug = sanitize_title( _x( 'Blogroll', 'Default link category slug' ) ); 
    664664 
    665                 $wpdb->insert( $wpdb->sitecategories, array( 'site_id' => $network_id, 'cat_ID' => 2, 'cat_name' => __('Blogroll'), 'category_nicename' => $cat_slug, 'last_updated' => current_time( 'mysql', true ) ) ); 
     665                $wpdb->insert( $wpdb->sitecategories, array( 'cat_ID' => 2, 'cat_name' => __('Blogroll'), 'category_nicename' => $cat_slug, 'last_updated' => current_time( 'mysql', true ) ) ); 
    666666 
    667667                $site_admins = array( $site_user->user_login ); 
    668668                $users = get_users_of_blog(); 
     
    722722        $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); 
    723723 
    724724        $current_site->domain = $domain; 
    725         $current_site->path = $base; 
     725        $current_site->path = $path; 
    726726        $current_site->site_name = ucfirst( $domain ); 
    727727 
    728728        if ( !is_multisite() ) {