Completed
Push — master ( 16fdff...5c9dfc )
by Roy
02:11
created
woo-includes/woo-functions.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,9 @@
 block discarded – undo
2 2
 /**
3 3
  * Functions used by plugins
4 4
  */
5
-if ( ! class_exists( 'WC_Dependencies' ) )
5
+if ( ! class_exists( 'WC_Dependencies' ) ) {
6 6
 	require_once 'class-wc-dependencies.php';
7
+}
7 8
 
8 9
 /**
9 10
  * WC Detection
Please login to merge, or discard this patch.
woo-includes/class-wc-dependencies.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,13 +12,16 @@
 block discarded – undo
12 12
 
13 13
 		self::$active_plugins = (array) get_option( 'active_plugins', array() );
14 14
 
15
-		if ( is_multisite() )
16
-			self::$active_plugins = array_merge( self::$active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
15
+		if ( is_multisite() ) {
16
+					self::$active_plugins = array_merge( self::$active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
17
+		}
17 18
 	}
18 19
 
19 20
 	public static function woocommerce_active_check() {
20 21
 
21
-		if ( ! self::$active_plugins ) self::init();
22
+		if ( ! self::$active_plugins ) {
23
+			self::init();
24
+		}
22 25
 
23 26
 		return in_array( 'woocommerce/woocommerce.php', self::$active_plugins ) || array_key_exists( 'woocommerce/woocommerce.php', self::$active_plugins );
24 27
 	}
Please login to merge, or discard this patch.