private function get_network( $network_id ) {
		global $wpdb;

		// Load network data
		$networks = $wpdb->get_results(
			$wpdb->prepare(
				"SELECT * FROM $wpdb->site WHERE id = %d",
				$network_id
			)
		);

		if ( ! empty( $networks ) ) {
			// Only care about domain and path which are set here
			return $networks[0];
		}

		return false;
	}
private function get_network( $network_id ) {
		global $wpdb;

		// Load network data
		$networks = $wpdb->get_results(
			$wpdb->prepare(
				"SELECT * FROM $wpdb->site WHERE id = %d",
				$network_id
			)
		);

		if ( ! empty( $networks ) ) {
			// Only care about domain and path which are set here
			return $networks[0];
		}

		return false;
	}
private function get_network ( $ network_id ) { global $ wpdb ; // Load network data $ networks = $ wpdb -> get_results ( $ wpdb -> prepare ( "SELECT * FROM $wpdb->site WHERE id = %d" , $ network_id ) ) ; if ( ! empty ( $ networks ) ) { // Only care about domain and path which are set here return $ networks [ 0 ] ; } return false ; }
Gets network data for a given id.

@param int     $network_id
@return bool|array False if no network found with given id, array otherwise
Gets network data for a given id .