WPML Widgets - Version 1.0.6

Version Description

  • 04/01/2016 =
  • Fix - Issue introduced in 1.0.5 where with some people the 'wpml_get_active_languages()' function doesn't exist.
Download this release

Release Info

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

Code changes from version 1.0.5 to 1.0.6

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wpml-widgets.php +2 -2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sormano
3
  Tags: WPML, WPML widget, WordPress Multilanguage, WordPress Multilanguage widget, WPML widget selector
4
  Requires at least: 3.6
5
  Tested up to: 4.7
6
- Stable tag: 1.0.5
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -30,6 +30,9 @@ WPML Widgets is a ultra lightweight plugin, so there will be (about) zero extra
30
 
31
  == Changelog ==
32
 
 
 
 
33
  = 1.0.5 - 02/01/2016 =
34
  * Change - Removed the unneeded prefixes of the class methods.
35
  * Tested - With the current WordPress version (4.7)
3
  Tags: WPML, WPML widget, WordPress Multilanguage, WordPress Multilanguage widget, WPML widget selector
4
  Requires at least: 3.6
5
  Tested up to: 4.7
6
+ Stable tag: 1.0.6
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
30
 
31
  == Changelog ==
32
 
33
+ = 1.0.6 - 04/01/2016 =
34
+ * Fix - Issue introduced in 1.0.5 where with some people the 'wpml_get_active_languages()' function doesn't exist.
35
+
36
  = 1.0.5 - 02/01/2016 =
37
  * Change - Removed the unneeded prefixes of the class methods.
38
  * Tested - With the current WordPress version (4.7)
wpml-widgets.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WPML Widgets
4
  * Plugin URI: http://jeroensormani.com
5
  * Description: Easily select which widgets you want to show for which languages
6
- * Version: 1.0.5
7
  * Author: Jeroen Sormani
8
  * Author URI: http://jeroensormani.com
9
  * Text domain: wpml-widgets
@@ -119,7 +119,7 @@ class WPML_Widgets {
119
  */
120
  public function widget_dropdown( $widget, $form, $instance ) {
121
 
122
- $languages = wpml_get_active_languages();
123
 
124
  ?><p>
125
  <label for='wpml_language'><?php _e( 'Display on language:', 'wpml-widgets' ); ?> </label>
3
  * Plugin Name: WPML Widgets
4
  * Plugin URI: http://jeroensormani.com
5
  * Description: Easily select which widgets you want to show for which languages
6
+ * Version: 1.0.6
7
  * Author: Jeroen Sormani
8
  * Author URI: http://jeroensormani.com
9
  * Text domain: wpml-widgets
119
  */
120
  public function widget_dropdown( $widget, $form, $instance ) {
121
 
122
+ $languages = apply_filters( 'wpml_active_languages', array() );
123
 
124
  ?><p>
125
  <label for='wpml_language'><?php _e( 'Display on language:', 'wpml-widgets' ); ?> </label>