Skip to content

Commit 5570f70

Browse files
update
1 parent 0463c3e commit 5570f70

File tree

6 files changed

+30
-14
lines changed

6 files changed

+30
-14
lines changed

animation-addons-for-elementor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Animation Addons
44
* Description: Animation Addons for Elementor comes with GSAP Animation Builder, Customizable Widgets, Header Footer, Single Post, Archive Page Builder, and more.
55
* Plugin URI: https://animation-addons.com/
6-
* Version: 2.3.11
6+
* Version: 2.3.12
77
* Author: Wealcoder
88
* Author URI: https://animation-addons.com/
99
* License: GPL v2 or later
@@ -26,7 +26,7 @@
2626
/**
2727
* Plugin Version.
2828
*/
29-
define( 'WCF_ADDONS_VERSION', '2.3.11' );
29+
define( 'WCF_ADDONS_VERSION', '2.3.12' );
3030
}
3131
if ( ! defined( 'WCF_ADDONS_FILE' ) ) {
3232
/**

class-plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ private function include_files()
937937
include_once WCF_ADDONS_PATH . 'inc/post-rating-handler.php';
938938
include_once WCF_ADDONS_PATH . 'inc/category-fields.php';
939939
include_once WCF_ADDONS_PATH . 'inc/admin/image-cache.php';
940-
include_once WCF_ADDONS_PATH . 'inc/admin/page-import.php';
940+
//include_once WCF_ADDONS_PATH . 'inc/admin/page-import.php';
941941
include_once WCF_ADDONS_PATH . 'widgets/mailchimp/mailchimp-api.php';
942942
include_once WCF_ADDONS_PATH . 'inc/trait-wcf-nested-slider.php';
943943

inc/theme-builder/theme-builder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,12 +1442,12 @@ class="bi bi-x-lg" viewBox="0 0 16 16"><path
14421442
<label class="wcf-addons-template-edit-label">{{{data.heading.fields.trigger}}}</label>
14431443
<select class="wcf-addons-template-edit-input" name="wcf-addons--popup--builder-trigger"
14441444
id="wcf-addons--popup--builder-trigger">
1445-
<option value="click"><?php echo esc_html__('Click', 'animation-addons-for-elementor'); ?></option>
1445+
<!-- <option value="click"><?php echo esc_html__('Click', 'animation-addons-for-elementor'); ?></option> -->
14461446
<option value="pageloaded"><?php echo esc_html__('Page Loaded', 'animation-addons-for-elementor'); ?></option>
14471447
<option value="pageexit"><?php echo esc_html__('Page Body Exist', 'animation-addons-for-elementor'); ?></option>
1448-
<option value="user_inactivity"><?php echo esc_html__('User Inactivity', 'animation-addons-for-elementor'); ?></option>
1449-
<option value="page_scroll"><?php echo esc_html__('Page Scroll', 'animation-addons-for-elementor'); ?></option>
1450-
<option value="page_scroll_up"><?php echo esc_html__('Page Scroll Up', 'animation-addons-for-elementor'); ?></option>
1448+
<!-- <option value="user_inactivity"><?php echo esc_html__('User Inactivity', 'animation-addons-for-elementor'); ?></option> -->
1449+
<!-- <option value="page_scroll"><?php echo esc_html__('Page Scroll', 'animation-addons-for-elementor'); ?></option> -->
1450+
<!-- <option value="page_scroll_up"><?php echo esc_html__('Page Scroll Up', 'animation-addons-for-elementor'); ?></option> -->
14511451
</select>
14521452
</div>
14531453
<div class="wcf-addons-template-edit-field aae-popup-builder-location hidden">

inc/trait-wcf-post-query.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ protected function query_arg() {
734734

735735
if(isset($_GET['aae-ajax-filter']))
736736
{
737+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
737738
if(isset($_GET['tax']) && isset($_GET['term']) && $_GET['term'] != 'all'){
738739
$query_args['tax_query'][] = [
739740
'taxonomy' => sanitize_text_field( wp_slash( $_GET['tax'] ) ),
@@ -745,15 +746,18 @@ protected function query_arg() {
745746

746747
if(isset($_GET['aae-ajax-filter']))
747748
{
749+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
748750
if(isset($_GET['tax']) && isset($_GET['term']) && $_GET['term'] != 'all'){
749751
$query_args['tax_query'][] = [
750752
'taxonomy' => sanitize_text_field( wp_slash( $_GET['tax'] ) ),
751753
'field' => 'term_id',
752754
'terms' => sanitize_text_field( wp_slash( $_GET['term'] ) ),
753755
];
754756
}
757+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only access to a public pagination var. No state change, DB write, or sensitive action.
758+
// Also fully sanitized to prevent injection.
755759
if(isset($_GET['tax']) && isset($_GET['term']) && isset($_GET['cpaged'])){
756-
$query_args['paged'] = sanitize_text_field( wp_slash( $_GET['cpaged'] ) );
760+
$query_args['paged'] = absint( sanitize_text_field( wp_slash( $_GET['cpaged'] ) ) );
757761
}
758762
}
759763

readme.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: Elementor, Elementor Addons, Elementor Templates, Animation, Templates
55
Requires at least: 6.0
66
Tested up to: 6.8
77
Requires PHP: 7.4
8-
Stable tag: 2.3.11
8+
Stable tag: 2.3.12
99
License: GPL v2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -98,7 +98,7 @@ Once your website is designed with all the essential elements, enhance its funct
9898
**Wrapper Link**: Transform entire container sections into clickable links for seamless navigation.
9999
**[Popup](https://animation-addons.com/extensions/pop-up/)**: Create engaging popups to enhance user interaction and showcase important content.
100100
**Tilt Effect**: Tilt an element based on the visitor’s mouse movement for a dynamic visual experience.
101-
**Advanced Tooltip**: Display additional information about elements when users hover over them.
101+
**[Advanced Tooltip](https://animation-addons.com/extensions/advanced-tooltip/)**: Display additional information about elements when users hover over them.
102102
**Custom Fonts**: Integrate unique custom fonts to maintain a consistent brand identity.
103103
**Mega Menu**: Create a customizable, expansive mega menu for seamless navigation.
104104

@@ -422,6 +422,14 @@ See the unminified JS and CSS in our public repo: [GitHub Repository](https://gi
422422

423423
== Changelog ==
424424

425+
= Animation Addons for Elementor v2.3.12 – 02 September 2025 =
426+
427+
- 🎨 Fixed: Toggle Widget for smoother interaction and better user experience
428+
- 🎨 Fixed: Mailchimp Widget subscribing issue to ensure seamless email marketing integration
429+
- 🎨 Fixed: Nested Element editor loading issue for faster, stable page building
430+
- 🆕 Added: Code Snippet visibility option to give you more control and flexibility in your projects
431+
- ✏️ Improved: Dashboard Starter Template design and filter for easier access to 200+ websites & 10,000+ sections
432+
425433
= Animation Addons for Elementor v2.3.11 – 19 august 2025 =
426434
- 🆕 **Added:** Starter Template Menu
427435
- 🎨 **Fixed:** Mobile navigation overlay issue for smoother user experience

widgets/mailchimp/mailchimp-api.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,20 @@ private static function normalize_and_validate_email($raw) {
8989
* Add/Update a subscriber (idempotent)
9090
*/
9191
public static function insert_subscriber_to_mailchimp($submitted_data) {
92-
if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'wcf-addons-frontend')) {
92+
93+
// 0) Basic nonce check
94+
$nonce = isset($_REQUEST['nonce']) ? sanitize_text_field(wp_unslash($_REQUEST['nonce'])) : '';
95+
96+
if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($nonce , 'wcf-addons-frontend')) {
9397
wp_send_json_error('Invalid nonce');
9498
}
9599

96100
// 1) Decode API key and basic inputs
97101
$api_key = '';
98102
if (!empty($_POST['key'])) {
99-
$api_key = str_replace('w1c2f', '', base64_decode(wp_unslash($_POST['key'])));
103+
$api_key = str_replace('w1c2f', '', base64_decode( sanitize_text_field( wp_unslash($_POST['key']) )));
100104
}
101-
$list_id = isset($_POST['listId']) ? trim((string) wp_unslash($_POST['listId'])) : '';
105+
$list_id = isset($_POST['listId']) ? trim((string) sanitize_text_field( wp_unslash($_POST['listId']))) : '';
102106
$double = (isset($_POST['doubleOpt']) && $_POST['doubleOpt'] === 'yes');
103107

104108
if (!$api_key || !$list_id) {
@@ -121,7 +125,7 @@ public static function insert_subscriber_to_mailchimp($submitted_data) {
121125
// 3) Optional tags (array of strings)
122126
$tags = [];
123127
if (!empty($_POST['listTags'])) {
124-
$tags = array_filter(array_map('trim', preg_split('/\s*,\s*/', wp_unslash($_POST['listTags']))));
128+
$tags = array_filter(array_map('trim', preg_split('/\s*,\s*/', sanitize_text_field(wp_unslash($_POST['listTags'])))));
125129
}
126130

127131
// 4) Build merge_fields safely

0 commit comments

Comments
 (0)