Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion emfluence.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down