Plugin Directory

Changeset 1585938


Ignore:
Timestamp:
01/31/2017 05:01:42 PM (9 years ago)
Author:
igor-lemon
Message:

tagging version 1.11.2

Location:
stacksight
Files:
2 edited
17 copied

Legend:

Unmodified
Added
Removed
  • stacksight/tags/1.11.2/readme.txt

    r1573297 r1585938  
    44Requires at least: 3.5
    55Tested up to: 4.3
    6 Stable tag: 1.11.1
     6Stable tag: 1.11.2
    77License: GPLv2 or later
    88
     
    8686
    8787== Changelog ==
     88= 1.11.2 =
     89- Fix inventory data for WP multisite
     90
    8891= 1.11.0 =
    8992- Save application settings in DB
  • stacksight/tags/1.11.2/wp-stacksight.php

    r1573297 r1585938  
    44 * Plugin URI: https://wordpress.org/plugins/stacksight/
    55 * Description: Stacksight wordpress support (featuring events, error logs and updates)
    6  * Version: 1.11.1
     6 * Version: 1.11.2
    77 * Author: Stacksight LTD
    88 * Author URI: http://stacksight.io
     
    436436        if($network_wide == true && is_multisite()){
    437437            if(is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
    438                 return false;
     438                return true;
    439439            }
    440440            if(!is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
    441                 return false;
     441                return true;
    442442            }
    443443            if(is_plugin_active_for_network($plugin) && !in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
     
    449449        } else{
    450450            if(is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_option('active_plugins', array()))){
    451                 return false;
     451                return true;
    452452            }
    453453            if(!is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_option('active_plugins', array()))){
     
    836836                    if(is_multisite()){
    837837                        if($blog_id){
    838                             $active = $this->is_blog_plugin_active($path, $blog_id);
     838                            $active = $this->is_blog_plugin_active($path, $blog_id, true);
    839839                        } else{
    840                             $active = $this->is_blog_plugin_active($path, get_current_blog_id());
     840                            $active = $this->is_blog_plugin_active($path, get_current_blog_id(), true);
    841841                        }
    842842                    } else{
     
    859859        }
    860860
    861         $current_theme = get_current_theme();
     861        $current_blog_id = get_current_blog_id();
     862        $theme_info = '';
     863        $current_theme = '';
     864        if(!is_multisite() || (is_multisite() && $blog_id && $blog_id == $current_blog_id)){
     865            $current_theme = get_current_theme();
     866        } elseif($blog_id){
     867            $current_theme = get_blog_option($blog_id, 'current_theme', array());
     868        }
    862869        if($object_themes && is_array($object_themes)){
    863870            foreach($object_themes as $theme_name => $theme){
     
    874881            }
    875882        }
     883       
    876884        return array_merge($themes, $plugins);
    877885    }
  • stacksight/trunk/readme.txt

    r1573297 r1585938  
    44Requires at least: 3.5
    55Tested up to: 4.3
    6 Stable tag: 1.11.1
     6Stable tag: 1.11.2
    77License: GPLv2 or later
    88
     
    8686
    8787== Changelog ==
     88= 1.11.2 =
     89- Fix inventory data for WP multisite
     90
    8891= 1.11.0 =
    8992- Save application settings in DB
  • stacksight/trunk/wp-stacksight.php

    r1573297 r1585938  
    44 * Plugin URI: https://wordpress.org/plugins/stacksight/
    55 * Description: Stacksight wordpress support (featuring events, error logs and updates)
    6  * Version: 1.11.1
     6 * Version: 1.11.2
    77 * Author: Stacksight LTD
    88 * Author URI: http://stacksight.io
     
    436436        if($network_wide == true && is_multisite()){
    437437            if(is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
    438                 return false;
     438                return true;
    439439            }
    440440            if(!is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
    441                 return false;
     441                return true;
    442442            }
    443443            if(is_plugin_active_for_network($plugin) && !in_array($plugin, (array) get_blog_option($blog_id, 'active_plugins', array()))){
     
    449449        } else{
    450450            if(is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_option('active_plugins', array()))){
    451                 return false;
     451                return true;
    452452            }
    453453            if(!is_plugin_active_for_network($plugin) && in_array($plugin, (array) get_option('active_plugins', array()))){
     
    836836                    if(is_multisite()){
    837837                        if($blog_id){
    838                             $active = $this->is_blog_plugin_active($path, $blog_id);
     838                            $active = $this->is_blog_plugin_active($path, $blog_id, true);
    839839                        } else{
    840                             $active = $this->is_blog_plugin_active($path, get_current_blog_id());
     840                            $active = $this->is_blog_plugin_active($path, get_current_blog_id(), true);
    841841                        }
    842842                    } else{
     
    859859        }
    860860
    861         $current_theme = get_current_theme();
     861        $current_blog_id = get_current_blog_id();
     862        $theme_info = '';
     863        $current_theme = '';
     864        if(!is_multisite() || (is_multisite() && $blog_id && $blog_id == $current_blog_id)){
     865            $current_theme = get_current_theme();
     866        } elseif($blog_id){
     867            $current_theme = get_blog_option($blog_id, 'current_theme', array());
     868        }
    862869        if($object_themes && is_array($object_themes)){
    863870            foreach($object_themes as $theme_name => $theme){
     
    874881            }
    875882        }
     883       
    876884        return array_merge($themes, $plugins);
    877885    }
Note: See TracChangeset for help on using the changeset viewer.