From 4c617fdb094197717a7123e4ccf2dc012de802d6 Mon Sep 17 00:00:00 2001 From: emfluenceindia Date: Tue, 11 Jun 2024 10:20:41 +0530 Subject: [PATCH] Php warning fix --- emfluence.php | 2 +- readme.txt | 5 ++++- widget.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/emfluence.php b/emfluence.php index 8f4c5f7..adbe717 100755 --- a/emfluence.php +++ b/emfluence.php @@ -4,7 +4,7 @@ Plugin URI: https://github.com/emfluencekc/wp-emfluence Description: Easily add forms to your website for contacts to add or update their details in your emfluence Marketing Platform account. Author: emfluence Digital Marketing -Version: 2.13 +Version: 2.14 Author URI: https://www.emfluence.com Text Domain: emfl_form */ diff --git a/readme.txt b/readme.txt index beb7694..e274dd1 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Tags: email, email marketing, emailmarketing, emfluence, api, marketing automation, widget, email widget, email signup, mailing list, newsletter, form, automation Requires at least: 4.0 Tested up to: 6.0 -Stable tag: 2.13 +Stable tag: 2.14 Requires PHP: 5.6 Contributors: emfluencekc, mightyturtle License: GPLv2 or later @@ -57,6 +57,9 @@ choose date as your type for your field on your widget too. == Changelog == += 2.14 = +* PHP warning fix + = 2.13 = * PHP error fixes diff --git a/widget.php b/widget.php index d71348b..e6ff46d 100644 --- a/widget.php +++ b/widget.php @@ -197,7 +197,7 @@ function widget( $args, $instance ) { * Form processing */ - if( !empty($_POST) && ($_POST['action'] == 'email_signup') && ($_POST['form-id'] === $args['widget_id']) ){ + if( !empty($_POST) && array_key_exists( 'action', $_POST ) && ($_POST['action'] == 'email_signup') && ($_POST['form-id'] === $args['widget_id']) ){ $defaults = $this->form_get_defaults(); // Set the field values in case there's an error