source/php/Display.php
public function isActiveSidebar($isActiveSidebar, $sidebar)
    {
        $widgets = wp_get_sidebars_widgets();
        $widgets = array_map('array_filter', $widgets);
        $visibleModules = false;

        if (isset($this->modules[$sidebar]) && count($this->modules[$sidebar]) > 0) {
            foreach ($this->modules[$sidebar]['modules'] as $module) {
                if (!is_preview() && $module->hidden == 'true') {
                    continue;
                }

                $visibleModules = true;
            }
        }

        $hasWidgets = !empty($widgets[$sidebar]);
        $hasModules = ($visibleModules && isset($this->modules[$sidebar]) && count($this->modules[$sidebar]) > 0);

        if ($hasWidgets || $hasModules) {
            return true;
        }

        return false;
    }
public function isActiveSidebar($isActiveSidebar, $sidebar)
    {
        $widgets = wp_get_sidebars_widgets();
        $widgets = array_map('array_filter', $widgets);
        $visibleModules = false;

        if (isset($this->modules[$sidebar]) && count($this->modules[$sidebar]) > 0) {
            foreach ($this->modules[$sidebar]['modules'] as $module) {
                if (!is_preview() && $module->hidden == 'true') {
                    continue;
                }

                $visibleModules = true;
            }
        }

        $hasWidgets = !empty($widgets[$sidebar]);
        $hasModules = ($visibleModules && isset($this->modules[$sidebar]) && count($this->modules[$sidebar]) > 0);

        if ($hasWidgets || $hasModules) {
            return true;
        }

        return false;
    }
public function isActiveSidebar ( $ isActiveSidebar , $ sidebar ) { $ widgets = wp_get_sidebars_widgets ( ) ; $ widgets = array_map ( 'array_filter' , $ widgets ) ; $ visibleModules = false ; if ( isset ( $ this -> modules [ $ sidebar ] ) && count ( $ this -> modules [ $ sidebar ] ) > 0 ) { foreach ( $ this -> modules [ $ sidebar ] [ 'modules' ] as $ module ) { if ( ! is_preview ( ) && $ module -> hidden == 'true' ) { continue ; } $ visibleModules = true ; } } $ hasWidgets = ! empty ( $ widgets [ $ sidebar ] ) ; $ hasModules = ( $ visibleModules && isset ( $ this -> modules [ $ sidebar ] ) && count ( $ this -> modules [ $ sidebar ] ) > 0 ) ; if ( $ hasWidgets || $ hasModules ) { return true ; } return false ; }
New is_active_sidebar logic which includes module check
@param  boolean  $isActiveSidebar Original response
@param  string   $sidebar         Sidebar id
@return boolean
New is_active_sidebar logic which includes module check