From 377cdd17a4138a3fc0d94b088e63fcb98b4541b2 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Wed, 29 Jul 2015 00:18:33 -0500 Subject: [PATCH 01/10] Add space between attributes to resolve HTML validation error. Reported in https://wordpress.org/support/topic/no-space-between-attributes-1 --- class-bjgk-genesis-enews-extended.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class-bjgk-genesis-enews-extended.php b/class-bjgk-genesis-enews-extended.php index a92580b..a212e12 100644 --- a/class-bjgk-genesis-enews-extended.php +++ b/class-bjgk-genesis-enews-extended.php @@ -116,7 +116,7 @@ function widget( $args, $instance ) {
target="_blank" onsubmit="if ( subbox1.value == '') { subbox1.value = ''; } if ( subbox2.value == '') { subbox2.value = ''; }" name="id ); ?>"> - + required="required" /> @@ -133,8 +133,8 @@ function widget( $args, $instance ) { - - + + required="required" /> From 049b3c35a9277e26bc9ac7b4cbe3fdccbc07d5a9 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Wed, 29 Jul 2015 10:12:01 -0500 Subject: [PATCH 02/10] Check for mailpoet settings before validating them. Fixes #119 props: norcross --- class-bjgk-genesis-enews-extended.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/class-bjgk-genesis-enews-extended.php b/class-bjgk-genesis-enews-extended.php index a212e12..da07644 100644 --- a/class-bjgk-genesis-enews-extended.php +++ b/class-bjgk-genesis-enews-extended.php @@ -167,8 +167,14 @@ function update( $new_instance, $old_instance ) { $new_instance['hidden_fields'] = strip_tags( $new_instance['hidden_fields'], "
,
, ,
- -


+