mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Multisite: Remove references to $wpdb->siteid and use get_current_network_id() instead.
Props sathyapulse, spacedmonkey. Fixes #41507. git-svn-id: https://develop.svn.wordpress.org/trunk@41242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -148,8 +148,8 @@ class Tests_Multisite_Option extends WP_UnitTestCase {
|
||||
* @group multisite
|
||||
*/
|
||||
function test_site_notoptions() {
|
||||
global $wpdb;
|
||||
$notoptions_key = "{$wpdb->siteid}:notoptions";
|
||||
$network_id = get_current_network_id();
|
||||
$notoptions_key = "{$network_id}:notoptions";
|
||||
|
||||
$_notoptions = wp_cache_get( 'notoptions', 'site-options' );
|
||||
$this->assertEmpty( $_notoptions );
|
||||
|
||||
Reference in New Issue
Block a user