WPML Widgets - Version 1.0.2

Version Description

  • Fix - WordPress Multisite supported check
Download this release

Release Info

Developer sormano
Plugin Icon 128x128 WPML Widgets
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wpml-widgets.php +10 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.jeroensormani.com/donate/
4
  Tags: WPML, WPML widget, Wordpress Multilanguage, Wordpress Multilanguage widget, WPML widget selector
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
- Stable tag: 1.0.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -31,6 +31,9 @@ WPML Widgets is a ultra lightweight plugin, so there will be (about) zero extra
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 1.0.1=
35
  * Fix - notices in debug mode
36
  * Fix - Widgets won't break when WPML is not activated
4
  Tags: WPML, WPML widget, Wordpress Multilanguage, Wordpress Multilanguage widget, WPML widget selector
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.0.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.0.2 =
35
+ * Fix - WordPress Multisite supported check
36
+
37
  = 1.0.1=
38
  * Fix - notices in debug mode
39
  * Fix - Widgets won't break when WPML is not activated
wpml-widgets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WPML Widgets
4
  Plugin URI: http://www.jeroensormani.com
5
  Description: Easily select which widgets you want to show for which languages
6
- Version: 1.0.1
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.com
9
  */
@@ -51,8 +51,16 @@ class Wpml_Widgets {
51
  public function __construct() {
52
 
53
  // check if WPML is activated
 
 
 
 
 
 
54
  if ( ! in_array( 'sitepress-multilingual-cms/sitepress.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) :
55
- return;
 
 
56
  endif;
57
 
58
  // Add dropdown to widgets
3
  Plugin Name: WPML Widgets
4
  Plugin URI: http://www.jeroensormani.com
5
  Description: Easily select which widgets you want to show for which languages
6
+ Version: 1.0.2
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.com
9
  */
51
  public function __construct() {
52
 
53
  // check if WPML is activated
54
+
55
+ if ( ! function_exists( 'is_plugin_active_for_network' ) ) :
56
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
57
+ endif;
58
+
59
+
60
  if ( ! in_array( 'sitepress-multilingual-cms/sitepress.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) :
61
+ if ( ! is_plugin_active_for_network( 'sitepress-multilingual-cms/sitepress.php' ) ) :
62
+ return;
63
+ endif;
64
  endif;
65
 
66
  // Add dropdown to widgets