WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/12/2017 01:10:24 PM (3 years ago)
Author:
flixos90
Message:

Multisite: Remove references to $wpdb->siteid and use get_current_network_id() instead.

Props sathyapulse, spacedmonkey.
Fixes #41507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r41200 r41242  
    355355 */
    356356function validate_another_blog_signup() {
    357     global $wpdb, $blogname, $blog_title, $errors, $domain, $path;
     357    global $blogname, $blog_title, $errors, $domain, $path;
    358358    $current_user = wp_get_current_user();
    359359    if ( ! is_user_logged_in() ) {
     
    423423    $meta = apply_filters( 'add_signup_meta', $meta_defaults );
    424424
    425     $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid );
     425    $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, get_current_network_id() );
    426426
    427427    if ( is_wp_error( $blog_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.