Premium Addons for Elementor - Version 4.5.2

Version Description

  • Tweak: PHP Code refactored for better performance and security.
Download this release

Release Info

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

Code changes from version 4.5.1 to 4.5.2

admin/includes/admin-notices.php CHANGED
@@ -350,6 +350,10 @@ class Admin_Notices {
350
 
351
  check_ajax_referer( 'pa-notice-nonce', 'nonce' );
352
 
 
 
 
 
353
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
354
 
355
  if ( ! empty( $key ) && in_array( $key, self::$notices, true ) ) {
@@ -380,6 +384,10 @@ class Admin_Notices {
380
 
381
  check_ajax_referer( 'pa-notice-nonce', 'nonce' );
382
 
 
 
 
 
383
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
384
 
385
  if ( ! empty( $key ) && in_array( $key, self::$notices, true ) ) {
350
 
351
  check_ajax_referer( 'pa-notice-nonce', 'nonce' );
352
 
353
+ if ( ! current_user_can( 'install_plugins' ) ) {
354
+ wp_send_json_error();
355
+ }
356
+
357
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
358
 
359
  if ( ! empty( $key ) && in_array( $key, self::$notices, true ) ) {
384
 
385
  check_ajax_referer( 'pa-notice-nonce', 'nonce' );
386
 
387
+ if ( ! current_user_can( 'install_plugins' ) ) {
388
+ wp_send_json_error();
389
+ }
390
+
391
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
392
 
393
  if ( ! empty( $key ) && in_array( $key, self::$notices, true ) ) {
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 4.5.1
7
  Elementor tested up to: 3.4.0
8
  Elementor Pro tested up to: 3.3.7
9
  Author: Leap13
@@ -18,12 +18,12 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  }
19
 
20
  // Define Constants.
21
- define( 'PREMIUM_ADDONS_VERSION', '4.5.1' );
22
  define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
23
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
24
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
25
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
26
- define( 'PREMIUM_ADDONS_STABLE_VERSION', '4.5.0' );
27
 
28
  /*
29
  * Load plugin core file
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 4.5.2
7
  Elementor tested up to: 3.4.0
8
  Elementor Pro tested up to: 3.3.7
9
  Author: Leap13
18
  }
19
 
20
  // Define Constants.
21
+ define( 'PREMIUM_ADDONS_VERSION', '4.5.2' );
22
  define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
23
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
24
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
25
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
26
+ define( 'PREMIUM_ADDONS_STABLE_VERSION', '4.5.1' );
27
 
28
  /*
29
  * Load plugin core file
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
  Requires at least: 5.0
6
  Tested Up To: 5.8
7
  Requires PHP: 5.4
8
- Stable Tag: 4.5.1
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -195,6 +195,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
195
 
196
  == Changelog ==
197
 
 
 
 
 
198
  = 4.5.1 =
199
 
200
  - Tweak: Added new devices added in Elementor Custom Breakpoints to Equal Height feature.
5
  Requires at least: 5.0
6
  Tested Up To: 5.8
7
  Requires PHP: 5.4
8
+ Stable Tag: 4.5.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
195
 
196
  == Changelog ==
197
 
198
+ = 4.5.2 =
199
+
200
+ - Tweak: PHP Code refactored for better performance and security.
201
+
202
  = 4.5.1 =
203
 
204
  - Tweak: Added new devices added in Elementor Custom Breakpoints to Equal Height feature.