- fix plugin_updater for subsite

This commit is contained in:
andrewshuba
2019-10-28 13:28:14 +02:00
parent 56af4416bc
commit 6f0ba1bccf
+3
View File
@@ -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 ) {