src/PluginLoader.php
public function optionActivePlugins($plugins): array
    {
        if ($this->isPluginsScreen()) {
            return $plugins;
        }

        foreach (array_keys($this->getPlugins()) as $plugin) {
            $plugins = array_diff($plugins, [$plugin]);
            if ($this->isPluginActive($plugin)) {
                // Remove plugin from array, if exists
                $plugins = array_diff($plugins, [$plugin]);

                // Add plugin with relative url to WPMU_PLUGIN_DIR
                $plugins[] = $this->getRelativePath().$plugin;
            }
        }

        return array_unique($plugins);
    }
public function optionActivePlugins($plugins): array
    {
        if ($this->isPluginsScreen()) {
            return $plugins;
        }

        foreach (array_keys($this->getPlugins()) as $plugin) {
            $plugins = array_diff($plugins, [$plugin]);
            if ($this->isPluginActive($plugin)) {
                // Remove plugin from array, if exists
                $plugins = array_diff($plugins, [$plugin]);

                // Add plugin with relative url to WPMU_PLUGIN_DIR
                $plugins[] = $this->getRelativePath().$plugin;
            }
        }

        return array_unique($plugins);
    }
public function optionActivePlugins ( $ plugins ) : array { if ( $ this -> isPluginsScreen ( ) ) { return $ plugins ; } foreach ( array_keys ( $ this -> getPlugins ( ) ) as $ plugin ) { $ plugins = array_diff ( $ plugins , [ $ plugin ] ) ; if ( $ this -> isPluginActive ( $ plugin ) ) { // Remove plugin from array, if exists $ plugins = array_diff ( $ plugins , [ $ plugin ] ) ; // Add plugin with relative url to WPMU_PLUGIN_DIR $ plugins [ ] = $ this -> getRelativePath ( ) . $ plugin ; } } return array_unique ( $ plugins ) ; }
Add plugins to active plugins, this makes is_plugin_active work.

@param array $plugins

@return array
Add plugins to active plugins this makes is_plugin_active work .