Elementor Essential Addons - Version 4.8.0

Version Description

  • 14/07/2021 =

  • Improved: Reduced data in options table for better performance

  • Few minor bug fix and improvements

Download this release

Release Info

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

Code changes from version 4.7.5 to 4.8.0

essential_adons_elementor.php CHANGED
@@ -4,14 +4,14 @@
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 4.7.5
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
11
  *
12
- * WC tested up to: 5.4.1
13
- * Elementor tested up to: 3.2.5
14
- * Elementor Pro tested up to: 3.3.1
15
  */
16
 
17
  if (!defined('ABSPATH')) {
@@ -27,7 +27,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
- define('EAEL_PLUGIN_VERSION', '4.7.5');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 4.8.0
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
11
  *
12
+ * WC tested up to: 5.5.0
13
+ * Elementor tested up to: 3.3.0
14
+ * Elementor Pro tested up to: 3.3.2
15
  */
16
 
17
  if (!defined('ABSPATH')) {
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
+ define('EAEL_PLUGIN_VERSION', '4.8.0');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
includes/Classes/Migration.php CHANGED
@@ -70,6 +70,6 @@ class Migration
70
  // update plugin version
71
  update_option('eael_version', EAEL_PLUGIN_VERSION);
72
  }
73
-
74
  }
75
  }
70
  // update plugin version
71
  update_option('eael_version', EAEL_PLUGIN_VERSION);
72
  }
73
+ $this->remove_old_options_cache();
74
  }
75
  }
includes/Traits/Generator.php CHANGED
@@ -89,7 +89,8 @@ trait Generator
89
  $editor_updated_at = get_option('eael_editor_updated_at');
90
  $post_updated_at = get_option($this->uid . '_eael_updated_at');
91
 
92
-
 
93
 
94
  if ($editor_updated_at === false) {
95
  update_option('eael_editor_updated_at', strtotime('now'));
@@ -241,6 +242,8 @@ trait Generator
241
  // remove old cache files
242
  $this->remove_files($this->uid);
243
 
 
 
244
  // output custom js as fallback
245
  if ($this->custom_js_strings) {
246
  echo '<script>' . $this->custom_js_strings . '</script>';
@@ -379,4 +382,17 @@ trait Generator
379
  }
380
  return false;
381
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  }
89
  $editor_updated_at = get_option('eael_editor_updated_at');
90
  $post_updated_at = get_option($this->uid . '_eael_updated_at');
91
 
92
+ // remove old cache value from options table
93
+ $this->remove_old_cache();
94
 
95
  if ($editor_updated_at === false) {
96
  update_option('eael_editor_updated_at', strtotime('now'));
242
  // remove old cache files
243
  $this->remove_files($this->uid);
244
 
245
+
246
+
247
  // output custom js as fallback
248
  if ($this->custom_js_strings) {
249
  echo '<script>' . $this->custom_js_strings . '</script>';
382
  }
383
  return false;
384
  }
385
+
386
+ /**
387
+ * Added eael_ prefix in options field that's why need to delete old cache value
388
+ * for optimize options table
389
+ */
390
+ public function remove_old_cache() {
391
+ $old_post_updated_at = get_option( $this->uid . '_updated_at' );
392
+ if ( $old_post_updated_at ) {
393
+ delete_option( $this->uid . '_updated_at' );
394
+ delete_option( $this->uid . '_custom_js' );
395
+ delete_option( $this->uid . '_elements' );
396
+ }
397
+ }
398
  }
includes/Traits/Library.php CHANGED
@@ -302,4 +302,29 @@ trait Library
302
  }
303
  return false;
304
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  }
302
  }
303
  return false;
304
  }
305
+
306
+ /**
307
+ * Remove some old options value from wp_options table which are not use any more
308
+ *
309
+ * @since 4.7.4
310
+ */
311
+ public function remove_old_options_cache() {
312
+ $status = get_option( "eael_remove_old_cache" );
313
+ if ( !$status ) {
314
+ update_option("eael_remove_old_cache",true);
315
+ global $wpdb;
316
+ $sql = "from {$wpdb->options} as options_tb
317
+ inner join (SELECT option_id FROM {$wpdb->options}
318
+ WHERE ((option_name like '%\_elements' and LENGTH(option_name) = 18 and option_name not like '%\_eael_elements')
319
+ or (option_name like '%\_custom_js' and LENGTH(option_name) = 19 and option_name not like '%\_eael_custom_js' and (option_value IS NULL or option_value = '')))
320
+ and autoload = 'yes') AS options_tb2
321
+ ON options_tb2.option_id = options_tb.option_id";
322
+ $selection_sql = "select count(options_tb.option_id) as total ".$sql;
323
+ $results = $wpdb->get_var( $selection_sql );
324
+ if ( $results > 1 ) {
325
+ $deletiation_sql = "delete options_tb ".$sql;
326
+ $wpdb->query($deletiation_sql);
327
+ }
328
+ }
329
+ }
330
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addons, elementor widget, elementor
4
  Requires at least: 5.0
5
  Tested up to: 5.7.2
6
  Requires PHP: 5.6
7
- Stable tag: 4.7.5
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -225,6 +225,11 @@ Your existing elements/content will work with premium version. So you won't lose
225
 
226
  == Changelog ==
227
 
 
 
 
 
 
228
  = 4.7.5 - 07/07/2021 =
229
 
230
  - Improved: EA Simple Menu | Added few more styling controls
4
  Requires at least: 5.0
5
  Tested up to: 5.7.2
6
  Requires PHP: 5.6
7
+ Stable tag: 4.8.0
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 4.8.0 - 14/07/2021 =
229
+
230
+ - Improved: Reduced data in options table for better performance
231
+ - Few minor bug fix and improvements
232
+
233
  = 4.7.5 - 07/07/2021 =
234
 
235
  - Improved: EA Simple Menu | Added few more styling controls