Elementor Essential Addons - Version 2.10.4

Version Description

  • 18/04/2019 =
  • Fixed: Fatal error for flatsome theme
  • Few minor bugfix and improvements
Download this release

Release Info

Developer re_enter_rupok
Plugin Icon 128x128 Elementor Essential Addons
Version 2.10.4
Comparing to
See all releases

Code changes from version 2.10.3 to 2.10.4

essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The ultimate elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 2.10.3
8
  * Author URI: https://wpdeveloper.net/
9
  *
10
  * Text Domain: essential-addons-elementor
@@ -51,7 +51,7 @@ class Essential_Addons_Elementor
51
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
52
  define('EAEL_PLUGIN_PATH', plugin_dir_path(__FILE__));
53
  define('EAEL_PLUGIN_URL', plugins_url('/', __FILE__));
54
- define('EAEL_PLUGIN_VERSION', '2.10.3');
55
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . DIRECTORY_SEPARATOR . 'essential-addons-elementor');
56
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
57
 
4
  * Description: The ultimate elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 2.10.4
8
  * Author URI: https://wpdeveloper.net/
9
  *
10
  * Text Domain: essential-addons-elementor
51
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
52
  define('EAEL_PLUGIN_PATH', plugin_dir_path(__FILE__));
53
  define('EAEL_PLUGIN_URL', plugins_url('/', __FILE__));
54
+ define('EAEL_PLUGIN_VERSION', '2.10.4');
55
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . DIRECTORY_SEPARATOR . 'essential-addons-elementor');
56
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
57
 
includes/traits/Core.php CHANGED
@@ -6,6 +6,7 @@ if (!defined('ABSPATH')) {
6
  exit;
7
  } // Exit if accessed directly
8
 
 
9
  use \Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker as Plugin_Usage_Tracker;
10
 
11
  trait Core
@@ -99,6 +100,22 @@ trait Core
99
  $this->empty_dir(EAEL_ASSET_PATH);
100
  }
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  /**
103
  * Creates an Action Menu
104
  */
6
  exit;
7
  } // Exit if accessed directly
8
 
9
+ use \Elementor\User as User;
10
  use \Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker as Plugin_Usage_Tracker;
11
 
12
  trait Core
100
  $this->empty_dir(EAEL_ASSET_PATH);
101
  }
102
 
103
+ /**
104
+ * Check if elementor preview mode or not
105
+ */
106
+ public function is_preview_mode()
107
+ {
108
+ if (!User::is_current_user_can_edit()) {
109
+ return false;
110
+ }
111
+
112
+ if (!isset($_GET['elementor-preview'])) {
113
+ return false;
114
+ }
115
+
116
+ return true;
117
+ }
118
+
119
  /**
120
  * Creates an Action Menu
121
  */
includes/traits/Enqueue.php CHANGED
@@ -6,8 +6,6 @@ if (!defined('ABSPATH')) {
6
  exit;
7
  } // Exit if accessed directly
8
 
9
- use \Elementor\Plugin;
10
-
11
  trait Enqueue
12
  {
13
  public function enqueue_scripts()
@@ -32,7 +30,7 @@ trait Enqueue
32
  }
33
 
34
  // My Assets
35
- if (Plugin::$instance->preview->is_preview_mode()) {
36
  if ($this->has_cache_files()) {
37
  $css_file = EAEL_ASSET_URL . '/eael.min.css';
38
  $js_file = EAEL_ASSET_URL . '/eael.min.js';
6
  exit;
7
  } // Exit if accessed directly
8
 
 
 
9
  trait Enqueue
10
  {
11
  public function enqueue_scripts()
30
  }
31
 
32
  // My Assets
33
+ if ($this->is_preview_mode()) {
34
  if ($this->has_cache_files()) {
35
  $css_file = EAEL_ASSET_URL . '/eael.min.css';
36
  $js_file = EAEL_ASSET_URL . '/eael.min.js';
includes/traits/Generator.php CHANGED
@@ -5,7 +5,6 @@ if (!defined('ABSPATH')) {
5
  exit;
6
  } // Exit if accessed directly
7
 
8
- use \Elementor\Plugin;
9
  use \MatthiasMullie\Minify;
10
 
11
  trait Generator
@@ -112,7 +111,7 @@ trait Generator
112
  */
113
  public function generate_frontend_scripts($wp_query)
114
  {
115
- if (Plugin::$instance->preview->is_preview_mode()) {
116
  return;
117
  }
118
 
5
  exit;
6
  } // Exit if accessed directly
7
 
 
8
  use \MatthiasMullie\Minify;
9
 
10
  trait Generator
111
  */
112
  public function generate_frontend_scripts($wp_query)
113
  {
114
+ if ($this->is_preview_mode()) {
115
  return;
116
  }
117
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, page build
4
  Requires at least: 4.0
5
  Tested up to: 5.1
6
  Requires PHP: 5.4
7
- Stable tag: 2.10.3
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -168,6 +168,10 @@ Your existing elements/content will work with premium version. So you won't lose
168
 
169
  == Changelog ==
170
 
 
 
 
 
171
  = 2.10.3 - 16/04/2019 =
172
  - Fixed: assets not loading on archive pages
173
  - Fixed: load more button overflow issue
4
  Requires at least: 4.0
5
  Tested up to: 5.1
6
  Requires PHP: 5.4
7
+ Stable tag: 2.10.4
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
168
 
169
  == Changelog ==
170
 
171
+ = 2.10.4 - 18/04/2019 =
172
+ - Fixed: Fatal error for flatsome theme
173
+ - Few minor bugfix and improvements
174
+
175
  = 2.10.3 - 16/04/2019 =
176
  - Fixed: assets not loading on archive pages
177
  - Fixed: load more button overflow issue