From df90aafa9a03302ad81039440e5095e24ce35b49 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Wed, 6 Jan 2016 00:17:22 +0100
Subject: [PATCH] Prevent error by making sure the is_plugin_active_for_network
 function is loaded

---
 woocommerce-basic-ordernumbers.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/woocommerce-basic-ordernumbers.php b/woocommerce-basic-ordernumbers.php
index 42704db..afd6a64 100644
--- a/woocommerce-basic-ordernumbers.php
+++ b/woocommerce-basic-ordernumbers.php
@@ -20,6 +20,9 @@ if ( ! defined( 'ABSPATH' ) ) {
  * Check if WooCommerce is active
  **/
 function oton_is_wc_active() {
+	if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
+		require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
+	}
 	return 
 		in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) 
 		|| 
-- 
GitLab