From 8cde06c4e42b1a1a837b4064fe89e7c0824000ca Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sun, 26 Jun 2016 13:24:58 +0000 Subject: [PATCH] Multisite: Set `WP_Network` `blog_id` property default to string as expected. The `blog_id` property is always returned (and expected) as a string, so we should set it as one by default. Props flixos90. See #36717. git-svn-id: https://develop.svn.wordpress.org/trunk@37871 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-network.php b/src/wp-includes/class-wp-network.php index 3ba7fac6ce..0a8d12696d 100644 --- a/src/wp-includes/class-wp-network.php +++ b/src/wp-includes/class-wp-network.php @@ -63,7 +63,7 @@ class WP_Network { * @access private * @var string */ - private $blog_id = 0; + private $blog_id = '0'; /** * Domain used to set cookies for this network.