File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -987,7 +987,7 @@ function mailchimp_sf_merge_submit( $mv ) {
987
987
*/
988
988
case 'phone ' :
989
989
if (
990
- 'on ' === get_option ( $ opt )
990
+ ( 'on ' === get_option ( $ opt ) || $ mv_var [ ' required ' ] )
991
991
&& isset ( $ mv_var ['options ' ]['phone_format ' ] )
992
992
&& 'US ' === $ mv_var ['options ' ]['phone_format ' ]
993
993
) {
@@ -1006,7 +1006,7 @@ function mailchimp_sf_merge_submit( $mv ) {
1006
1006
* - Merge field is an array (address contains multiple <input> elements)
1007
1007
*/
1008
1008
case 'address ' :
1009
- if ( 'on ' === get_option ( $ opt ) && is_array ( $ opt_val ) ) {
1009
+ if ( ( 'on ' === get_option ( $ opt ) || $ mv_var [ ' required ' ] ) && is_array ( $ opt_val ) ) {
1010
1010
$ validate = mailchimp_sf_merge_validate_address ( $ opt_val , $ mv_var );
1011
1011
if ( is_wp_error ( $ validate ) ) {
1012
1012
return $ validate ;
You can’t perform that action at this time.
0 commit comments