diff --git a/wp-includes/option.php b/wp-includes/option.php
index ab8f81b..903296c 100644
--- a/wp-includes/option.php
+++ b/wp-includes/option.php
@@ -975,19 +975,102 @@ function delete_all_user_settings() {
  * Retrieve site option value based on name of option.
  *
  * @since 2.8.0
+ * @since 4.4.0 Modified into wrapper for get_network_option()
+ *
+ * @see get_network_option()
+ *
+ *
+ * @param string $option Name of option to retrieve. Expected to not be SQL-escaped.
+ * @param mixed $default Optional value to return if option doesn't exist. Default false.
+ * @param bool $deprecated Whether to use cache. Multisite only. Always set to true.
+ *
+ * @return mixed Value set for the option.
+ */
+function get_site_option( $option, $default = false, $deprecated = true ) {
+	return get_network_option( $option, $default );
+}
+
+/**
+ * Add a new site option.
+ *
+ * Existing options will not be updated. Note that prior to 3.3 this wasn't the case.
+ *
+ * @since 2.8.0
+ * @since 4.4.0 Modified into wrapper for add_network_option()
+ *
+ * @see add_network_option()
+ *
+ *
+ * @param string $option Name of option to add. Expected to not be SQL-escaped.
+ * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped.
+ *
+ * @return bool False if option was not added and true if option was added.
+ */
+function add_site_option( $option, $value ) {
+	return add_network_option( $option, $value );
+}
+
+/**
+ * Removes site option by name.
+ *
+ * @since 2.8.0
+ * @since 4.4.0 Modified into wrapper for delete_network_option()
+ *
+ * @see delete_network_option()
+ *
+ *
+ * @param string $option Name of option to remove. Expected to not be SQL-escaped.
+ *
+ * @return bool True, if succeed. False, if failure.
+ */
+function delete_site_option( $option ) {
+	return delete_network_option( $option );
+}
+
+/**
+ * Update the value of a site option that was already added.
+ *
+ * @since 2.8.0
+ * @since 4.4.0 Modified into wrapper for update_network_option()
+ *
+ * @see update_network_option()
+ *
+ *
+ * @param string $option Name of option. Expected to not be SQL-escaped.
+ * @param mixed $value Option value. Expected to not be SQL-escaped.
+ *
+ * @return bool False if value was not updated and true if value was updated.
+ */
+function update_site_option( $option, $value ) {
+	return update_network_option( $option, $value );
+}
+
+/**
+ * Retrieve site option value based on name of option.
+ *
+ * @since 4.4.0
  *
  * @see get_option()
  *
  * @global wpdb $wpdb
  *
- * @param string $option    Name of option to retrieve. Expected to not be SQL-escaped.
- * @param mixed  $default   Optional value to return if option doesn't exist. Default false.
- * @param bool   $use_cache Whether to use cache. Multisite only. Default true.
+ * @param string $option Name of option to retrieve. Expected to not be SQL-escaped.
+ * @param mixed $default Optional value to return if option doesn't exist. Default false.
+ * @param int|bool $network_id ID of the network.
+ *
  * @return mixed Value set for the option.
  */
-function get_site_option( $option, $default = false, $use_cache = true ) {
+function get_network_option( $option, $default = false, $network_id = true ) {
 	global $wpdb;
 
+	/** If network ID not set, get current network. **/
+	if ( false === $network_id && is_multisite() ) {
+		$current_network = get_current_site();
+		$network_id      = $current_network->id;
+	}
+	/** Make sure network id is an int */
+	$network_id = (int) $network_id;
+
 	/**
 	 * Filter an existing site option before it is retrieved.
 	 *
@@ -1000,19 +1083,20 @@ function get_site_option( $option, $default = false, $use_cache = true ) {
 	 * @since 3.0.0
 	 * @since 4.4.0 The `$option` parameter was added
 	 *
-	 * @param mixed  $pre_option The default value to return if the option does not exist.
-	 * @param string $option     Option name.
+	 * @param mixed $pre_option The default value to return if the option does not exist.
+	 * @param string $option Option name.
 	 */
 	$pre = apply_filters( 'pre_site_option_' . $option, false, $option );
 
- 	if ( false !== $pre )
- 		return $pre;
+	if ( false !== $pre ) {
+		return $pre;
+	}
 
 	// prevent non-existent options from triggering multiple queries
-	$notoptions_key = "{$wpdb->siteid}:notoptions";
-	$notoptions = wp_cache_get( $notoptions_key, 'site-options' );
+	$notoptions_key = "{$network_id}:notoptions";
+	$notoptions     = wp_cache_get( $notoptions_key, 'site-options' );
 
-	if ( isset( $notoptions[$option] ) ) {
+	if ( isset( $notoptions[ $option ] ) ) {
 
 		/**
 		 * Filter a specific default site option.
@@ -1022,9 +1106,9 @@ function get_site_option( $option, $default = false, $use_cache = true ) {
 		 * @since 3.4.0
 		 * @since 4.4.0 The `$option` parameter was added.
 		 *
-		 * @param mixed  $default The value to return if the site option does not exist
+		 * @param mixed $default The value to return if the site option does not exist
 		 *                        in the database.
-		 * @param string $option  Option name.
+		 * @param string $option Option name.
 		 */
 		return apply_filters( 'default_site_option_' . $option, $default, $option );
 	}
@@ -1033,14 +1117,13 @@ function get_site_option( $option, $default = false, $use_cache = true ) {
 
 		/** This filter is documented in wp-includes/option.php */
 		$default = apply_filters( 'default_site_option_' . $option, $default, $option );
-		$value = get_option($option, $default);
+		$value   = get_option( $option, $default );
 	} else {
-		$cache_key = "{$wpdb->siteid}:$option";
-		if ( $use_cache )
-			$value = wp_cache_get($cache_key, 'site-options');
+		$cache_key = "{$network_id}:$option";
+		$value     = wp_cache_get( $cache_key, 'site-options' );
 
-		if ( !isset($value) || (false === $value) ) {
-			$row = $wpdb->get_row( $wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) );
+		if ( false === $value ) {
+			$row = $wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $network_id ) );
 
 			// Has to be get_row instead of get_var because of funkiness with 0, false, null values
 			if ( is_object( $row ) ) {
@@ -1049,9 +1132,9 @@ function get_site_option( $option, $default = false, $use_cache = true ) {
 				wp_cache_set( $cache_key, $value, 'site-options' );
 			} else {
 				if ( ! is_array( $notoptions ) ) {
-					 $notoptions = array();
+					$notoptions = array();
 				}
-				$notoptions[$option] = true;
+				$notoptions[ $option ] = true;
 				wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
 
 				/** This filter is documented in wp-includes/option.php */
@@ -1069,30 +1152,41 @@ function get_site_option( $option, $default = false, $use_cache = true ) {
 	 * @since 3.0.0
 	 * @since 4.4.0 The `$option` parameter was added
 	 *
-	 * @param mixed  $value  Value of site option.
+	 * @param mixed $value Value of site option.
 	 * @param string $option Option name.
 	 */
+
 	return apply_filters( 'site_option_' . $option, $value, $option );
 }
 
 /**
- * Add a new site option.
+ * Add a new network option.
  *
  * Existing options will not be updated. Note that prior to 3.3 this wasn't the case.
  *
- * @since 2.8.0
+ * @since 4.4.0
  *
  * @see add_option()
  *
  * @global wpdb $wpdb
  *
  * @param string $option Name of option to add. Expected to not be SQL-escaped.
- * @param mixed  $value  Optional. Option value, can be anything. Expected to not be SQL-escaped.
+ * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped.
+ * @param  int|bool $network_id ID of the network.
+ *
  * @return bool False if option was not added and true if option was added.
  */
-function add_site_option( $option, $value ) {
+function add_network_option( $option, $value, $network_id = false ) {
 	global $wpdb;
 
+	/** If network ID not set, get current network. **/
+	if ( false === $network_id && is_multisite() ) {
+		$current_network = get_current_site();
+		$network_id      = $current_network->id;
+	}
+	/** Make sure network id is an int */
+	$network_id = (int) $network_id;
+
 	wp_protect_special_option( $option );
 
 	/**
@@ -1104,38 +1198,45 @@ function add_site_option( $option, $value ) {
 	 * @since 3.0.0
 	 * @since 4.4.0 The `$option` parameter was added
 	 *
-	 * @param mixed  $value  Value of site option.
+	 * @param mixed $value Value of site option.
 	 * @param string $option Option name.
 	 */
 	$value = apply_filters( 'pre_add_site_option_' . $option, $value, $option );
 
-	$notoptions_key = "{$wpdb->siteid}:notoptions";
+	$notoptions_key = "{$network_id}:notoptions";
 
-	if ( !is_multisite() ) {
+	if ( ! is_multisite() ) {
 		$result = add_option( $option, $value );
 	} else {
-		$cache_key = "{$wpdb->siteid}:$option";
+		$cache_key = "{$network_id}:$option";
 
 		// Make sure the option doesn't already exist. We can check the 'notoptions' cache before we ask for a db query
 		$notoptions = wp_cache_get( $notoptions_key, 'site-options' );
-		if ( ! is_array( $notoptions ) || ! isset( $notoptions[$option] ) )
-			if ( false !== get_site_option( $option ) )
+		if ( ! is_array( $notoptions ) || ! isset( $notoptions[ $option ] ) ) {
+			if ( false !== get_network_option( $option, false, $network_id ) ) {
 				return false;
+			}
+		}
 
 		$value = sanitize_option( $option, $value );
 
 		$serialized_value = maybe_serialize( $value );
-		$result = $wpdb->insert( $wpdb->sitemeta, array('site_id' => $wpdb->siteid, 'meta_key' => $option, 'meta_value' => $serialized_value ) );
+		$result           = $wpdb->insert( $wpdb->sitemeta, array(
+			'site_id'    => $network_id,
+			'meta_key'   => $option,
+			'meta_value' => $serialized_value
+		) );
 
-		if ( ! $result )
+		if ( ! $result ) {
 			return false;
+		}
 
 		wp_cache_set( $cache_key, $value, 'site-options' );
 
 		// This option exists now
 		$notoptions = wp_cache_get( $notoptions_key, 'site-options' ); // yes, again... we need it to be fresh
-		if ( is_array( $notoptions ) && isset( $notoptions[$option] ) ) {
-			unset( $notoptions[$option] );
+		if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) {
+			unset( $notoptions[ $option ] );
 			wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
 		}
 	}
@@ -1151,7 +1252,7 @@ function add_site_option( $option, $value ) {
 		 * @since 3.0.0
 		 *
 		 * @param string $option Name of site option.
-		 * @param mixed  $value  Value of site option.
+		 * @param mixed $value Value of site option.
 		 */
 		do_action( "add_site_option_{$option}", $option, $value );
 
@@ -1161,30 +1262,41 @@ function add_site_option( $option, $value ) {
 		 * @since 3.0.0
 		 *
 		 * @param string $option Name of site option.
-		 * @param mixed  $value  Value of site option.
+		 * @param mixed $value Value of site option.
 		 */
 		do_action( "add_site_option", $option, $value );
 
 		return true;
 	}
+
 	return false;
 }
 
 /**
- * Removes site option by name.
+ * Removes network option by name.
  *
- * @since 2.8.0
+ * @since 4.4.0
  *
  * @see delete_option()
  *
  * @global wpdb $wpdb
  *
- * @param string $option Name of option to remove. Expected to not be SQL-escaped.
+ * @param  string $option Name of option to remove. Expected to not be SQL-escaped.
+ * @param  int|bool $network_id ID of the network.
+ *
  * @return bool True, if succeed. False, if failure.
  */
-function delete_site_option( $option ) {
+function delete_network_option( $option, $network_id = false ) {
 	global $wpdb;
 
+	/** If network ID not set, get current network. **/
+	if ( false === $network_id && is_multisite() ) {
+		$current_network = get_current_site();
+		$network_id      = $current_network->id;
+	}
+	/** Make sure network id is an int */
+	$network_id = (int) $network_id;
+
 	// ms_protect_special_option( $option ); @todo
 
 	/**
@@ -1199,16 +1311,17 @@ function delete_site_option( $option ) {
 	 */
 	do_action( 'pre_delete_site_option_' . $option, $option );
 
-	if ( !is_multisite() ) {
+	if ( ! is_multisite() ) {
 		$result = delete_option( $option );
 	} else {
-		$row = $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM {$wpdb->sitemeta} WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) );
-		if ( is_null( $row ) || !$row->meta_id )
+		$row = $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM {$wpdb->sitemeta} WHERE meta_key = %s AND site_id = %d", $option, $network_id ) );
+		if ( is_null( $row ) || ! $row->meta_id ) {
 			return false;
-		$cache_key = "{$wpdb->siteid}:$option";
+		}
+		$cache_key = "{$network_id}:$option";
 		wp_cache_delete( $cache_key, 'site-options' );
 
-		$result = $wpdb->delete( $wpdb->sitemeta, array( 'meta_key' => $option, 'site_id' => $wpdb->siteid ) );
+		$result = $wpdb->delete( $wpdb->sitemeta, array( 'meta_key' => $option, 'site_id' => $network_id ) );
 	}
 
 	if ( $result ) {
@@ -1234,30 +1347,42 @@ function delete_site_option( $option ) {
 		 */
 		do_action( "delete_site_option", $option );
 
+
 		return true;
 	}
+
 	return false;
 }
 
 /**
- * Update the value of a site option that was already added.
+ * Update the value of a network option that was already added.
  *
- * @since 2.8.0
+ * @since 4.4.0
  *
  * @see update_option()
  *
  * @global wpdb $wpdb
  *
  * @param string $option Name of option. Expected to not be SQL-escaped.
- * @param mixed  $value  Option value. Expected to not be SQL-escaped.
+ * @param mixed $value Option value. Expected to not be SQL-escaped.
+ * @param  int|bool $network_id ID of the network.
+ *
  * @return bool False if value was not updated and true if value was updated.
  */
-function update_site_option( $option, $value ) {
+function update_network_option( $option, $value, $network_id = false ) {
 	global $wpdb;
 
+	/** If network ID not set, get current network. **/
+	if ( false === $network_id && is_multisite() ) {
+		$current_network = get_current_site();
+		$network_id      = $current_network->id;
+	}
+	/** Make sure network id is an int */
+	$network_id = (int) $network_id;
+
 	wp_protect_special_option( $option );
 
-	$old_value = get_site_option( $option );
+	$old_value = get_network_option( $option, false, $network_id );
 
 	/**
 	 * Filter a specific site option before its value is updated.
@@ -1268,35 +1393,40 @@ function update_site_option( $option, $value ) {
 	 * @since 3.0.0
 	 * @since 4.4.0 The `$option` parameter was added
 	 *
-	 * @param mixed  $value     New value of site option.
-	 * @param mixed  $old_value Old value of site option.
-	 * @param string $option    Option name.
+	 * @param mixed $value New value of site option.
+	 * @param mixed $old_value Old value of site option.
+	 * @param string $option Option name.
 	 */
 	$value = apply_filters( 'pre_update_site_option_' . $option, $value, $old_value, $option );
 
-	if ( $value === $old_value )
+	if ( $value === $old_value ) {
 		return false;
+	}
 
-	if ( false === $old_value )
-		return add_site_option( $option, $value );
+	if ( false === $old_value ) {
+		return add_network_option( $option, $value, $network_id );
+	}
 
-	$notoptions_key = "{$wpdb->siteid}:notoptions";
-	$notoptions = wp_cache_get( $notoptions_key, 'site-options' );
-	if ( is_array( $notoptions ) && isset( $notoptions[$option] ) ) {
-		unset( $notoptions[$option] );
+	$notoptions_key = "{$network_id}:notoptions";
+	$notoptions     = wp_cache_get( $notoptions_key, 'site-options' );
+	if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) {
+		unset( $notoptions[ $option ] );
 		wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
 	}
 
-	if ( !is_multisite() ) {
+	if ( ! is_multisite() ) {
 		$result = update_option( $option, $value );
 	} else {
 		$value = sanitize_option( $option, $value );
 
 		$serialized_value = maybe_serialize( $value );
-		$result = $wpdb->update( $wpdb->sitemeta, array( 'meta_value' => $serialized_value ), array( 'site_id' => $wpdb->siteid, 'meta_key' => $option ) );
+		$result           = $wpdb->update( $wpdb->sitemeta, array( 'meta_value' => $serialized_value ), array(
+			'site_id'  => $network_id,
+			'meta_key' => $option
+		) );
 
 		if ( $result ) {
-			$cache_key = "{$wpdb->siteid}:$option";
+			$cache_key = "{$network_id}:$option";
 			wp_cache_set( $cache_key, $value, 'site-options' );
 		}
 	}
@@ -1311,9 +1441,9 @@ function update_site_option( $option, $value ) {
 		 * @since 2.9.0 As "update_site_option_{$key}"
 		 * @since 3.0.0
 		 *
-		 * @param string $option    Name of site option.
-		 * @param mixed  $value     Current value of site option.
-		 * @param mixed  $old_value Old value of site option.
+		 * @param string $option Name of site option.
+		 * @param mixed $value Current value of site option.
+		 * @param mixed $old_value Old value of site option.
 		 */
 		do_action( "update_site_option_{$option}", $option, $value, $old_value );
 
@@ -1322,14 +1452,15 @@ function update_site_option( $option, $value ) {
 		 *
 		 * @since 3.0.0
 		 *
-		 * @param string $option    Name of site option.
-		 * @param mixed  $value     Current value of site option.
-		 * @param mixed  $old_value Old value of site option.
+		 * @param string $option Name of site option.
+		 * @param mixed $value Current value of site option.
+		 * @param mixed $old_value Old value of site option.
 		 */
 		do_action( "update_site_option", $option, $value, $old_value );
 
 		return true;
 	}
+
 	return false;
 }
 
@@ -1359,9 +1490,9 @@ function delete_site_transient( $transient ) {
 	} else {
 		$option_timeout = '_site_transient_timeout_' . $transient;
 		$option = '_site_transient_' . $transient;
-		$result = delete_site_option( $option );
+		$result = delete_network_option( $option );
 		if ( $result )
-			delete_site_option( $option_timeout );
+			delete_network_option( $option_timeout );
 	}
 	if ( $result ) {
 
@@ -1422,16 +1553,16 @@ function get_site_transient( $transient ) {
 		$transient_option = '_site_transient_' . $transient;
 		if ( ! in_array( $transient, $no_timeout ) ) {
 			$transient_timeout = '_site_transient_timeout_' . $transient;
-			$timeout = get_site_option( $transient_timeout );
+			$timeout = get_network_option( $transient_timeout );
 			if ( false !== $timeout && $timeout < time() ) {
-				delete_site_option( $transient_option  );
-				delete_site_option( $transient_timeout );
+				delete_network_option( $transient_option  );
+				delete_network_option( $transient_timeout );
 				$value = false;
 			}
 		}
 
 		if ( ! isset( $value ) )
-			$value = get_site_option( $transient_option );
+			$value = get_network_option( $transient_option );
 	}
 
 	/**
@@ -1486,14 +1617,14 @@ function set_site_transient( $transient, $value, $expiration = 0 ) {
 	} else {
 		$transient_timeout = '_site_transient_timeout_' . $transient;
 		$option = '_site_transient_' . $transient;
-		if ( false === get_site_option( $option ) ) {
+		if ( false === get_network_option( $option ) ) {
 			if ( $expiration )
-				add_site_option( $transient_timeout, time() + $expiration );
-			$result = add_site_option( $option, $value );
+				add_network_option( $transient_timeout, time() + $expiration );
+			$result = add_network_option( $option, $value );
 		} else {
 			if ( $expiration )
-				update_site_option( $transient_timeout, time() + $expiration );
-			$result = update_site_option( $option, $value );
+				update_network_option( $transient_timeout, time() + $expiration );
+			$result = update_network_option( $option, $value );
 		}
 	}
 	if ( $result ) {
