Make WordPress Core


Ignore:
Timestamp:
08/12/2017 01:10:24 PM (7 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-includes/option.php

    r41241 r41242  
    224224
    225225    if ( empty($network_id) )
    226         $network_id = $wpdb->siteid;
     226        $network_id = get_current_network_id();
    227227
    228228    $core_options = array('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting' );
Note: See TracChangeset for help on using the changeset viewer.