public function allActive(bool $slugify = true): array
    {
        global $blog_id; // Blog ID.

        $cache_key = '_'.(int) $blog_id.(int) $slugify;

        if (isset(static::$cache[__FUNCTION__][$cache_key])) {
            return static::$cache[__FUNCTION__][$cache_key];
        }
        $active         = $this->active($slugify);
        $network_active = $this->networkActive($slugify);
        $all_active     = array_merge($active, $network_active);

        if (!$slugify) { // Numeric keys.
            $all_active = array_unique($all_active);
        }
        return static::$cache[__FUNCTION__][$cache_key] = $all_active;
    }
public function allActive(bool $slugify = true): array
    {
        global $blog_id; // Blog ID.

        $cache_key = '_'.(int) $blog_id.(int) $slugify;

        if (isset(static::$cache[__FUNCTION__][$cache_key])) {
            return static::$cache[__FUNCTION__][$cache_key];
        }
        $active         = $this->active($slugify);
        $network_active = $this->networkActive($slugify);
        $all_active     = array_merge($active, $network_active);

        if (!$slugify) { // Numeric keys.
            $all_active = array_unique($all_active);
        }
        return static::$cache[__FUNCTION__][$cache_key] = $all_active;
    }
public function allActive ( bool $ slugify = true ) : array { global $ blog_id ; // Blog ID. $ cache_key = '_' . ( int ) $ blog_id . ( int ) $ slugify ; if ( isset ( static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] ) ) { return static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] ; } $ active = $ this -> active ( $ slugify ) ; $ network_active = $ this -> networkActive ( $ slugify ) ; $ all_active = array_merge ( $ active , $ network_active ) ; if ( ! $ slugify ) { // Numeric keys. $ all_active = array_unique ( $ all_active ) ; } return static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] = $ all_active ; }
All active plugins.

@since 160524 First documented version.

@param bool $slugify Slugs w/ basename keys?

@internal If false you'll get numerically indexed basenames.

@return array All active plugin basenames.
All active plugins .