From 6f0ba1bccff36eb0954901675e5ea1e521500d80 Mon Sep 17 00:00:00 2001 From: andrewshuba Date: Mon, 28 Oct 2019 13:28:14 +0200 Subject: [PATCH] - fix plugin_updater for subsite --- includes/core/class-plugin-updater.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/core/class-plugin-updater.php b/includes/core/class-plugin-updater.php index 6a7918d9..2c7cb144 100644 --- a/includes/core/class-plugin-updater.php +++ b/includes/core/class-plugin-updater.php @@ -158,6 +158,9 @@ if ( ! class_exists( 'um\core\Plugin_Updater' ) ) { switch_to_blog( $site->blog_id ); $the_plugs = get_option( 'active_plugins' ); + if( ! $the_plugs ) { + $the_plugs = array(); + } $the_plugs = array_merge( $the_plugs, $sitewide_plugins ); foreach ( $the_plugs as $key => $value ) {