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/tests/phpunit/tests/option/multisite.php

    r38762 r41242  
    149149     */
    150150    function test_site_notoptions() {
    151         global $wpdb;
    152         $notoptions_key = "{$wpdb->siteid}:notoptions";
     151        $network_id = get_current_network_id();
     152        $notoptions_key = "{$network_id}:notoptions";
    153153
    154154        $_notoptions = wp_cache_get( 'notoptions', 'site-options' );
Note: See TracChangeset for help on using the changeset viewer.