Premium Addons for Elementor - Version 3.2.0

Version Description

  • Fixed: Fatal error: call to undefined function in v3.1.9
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.9 to 3.2.0

includes/compatibility/class-premium-addons-wpml.php CHANGED
@@ -23,14 +23,24 @@ if ( ! class_exists ('Premium_Addons_Wpml') ) {
23
  */
24
  public function __construct() {
25
 
 
 
26
  // WPML String Translation plugin exist check.
27
- if ( is_wpml_string_translation_active() ) {
28
-
29
  $this->includes();
30
 
31
  add_filter( 'wpml_elementor_widgets_to_translate', [ $this, 'translatable_widgets' ] );
32
  }
33
  }
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * Integrations class for widgets with complex controls.
23
  */
24
  public function __construct() {
25
 
26
+ $is_wpml_active = self::is_wpml_active();
27
+
28
  // WPML String Translation plugin exist check.
29
+ if ( $is_wpml_active ) {
30
+
31
  $this->includes();
32
 
33
  add_filter( 'wpml_elementor_widgets_to_translate', [ $this, 'translatable_widgets' ] );
34
  }
35
  }
36
+
37
+ public static function is_wpml_active() {
38
+
39
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
40
+
41
+ return is_plugin_active( 'wpml-string-translation/plugin.php' );
42
+
43
+ }
44
 
45
  /**
46
  * Integrations class for widgets with complex controls.
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.1.9
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
- define('PREMIUM_ADDONS_VERSION', '3.1.9');
18
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(PREMIUM_ADDONS_FILE));
22
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.1.8');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
  /*
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.2.0
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.2.0');
18
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(PREMIUM_ADDONS_FILE));
22
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.1.9');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
  /*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 5.1.1
7
  Requires PHP: 5.4
8
- Stable tag: 3.1.9
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -139,6 +139,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 3.1.9 =
143
 
144
  - Tweak: `WPML Compatibility` for all widgets.
5
  Requires at least: 4.5
6
  Tested up to: 5.1.1
7
  Requires PHP: 5.4
8
+ Stable tag: 3.2.0
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
139
 
140
  == Changelog ==
141
 
142
+ = 3.2.0 =
143
+
144
+ - Fixed: `Fatal error: call to undefined function` in v3.1.9
145
+
146
  = 3.1.9 =
147
 
148
  - Tweak: `WPML Compatibility` for all widgets.