Skip to content

Commit

Permalink
release 2.3.54
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Feb 21, 2023
1 parent 351b0e7 commit 4b95e32
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions eme-formfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ function eme_replace_cancel_payment_placeholders( $format, $person, $booking_ids
$replacement .= eme_replace_booking_placeholders( $tmp_format, $event, $booking );
}
} elseif ( preg_match( '/#_CFCAPTCHA$/', $result ) ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_cfcaptcha_html();
$captcha_set = 1;
}
Expand Down Expand Up @@ -3002,22 +3002,22 @@ function eme_replace_rsvp_formfields_placeholders( $event, $booking, $format = '
$replacement = "<textarea $required_att name='$fieldname' $dynamic_field_class placeholder='$placeholder_text' >$bookerComment</textarea>";
}
} elseif ( preg_match( '/#_CFCAPTCHA$/', $result ) ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_sets && ! $is_multibooking ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_set && ! $is_multibooking ) {
$replacement = eme_load_cfcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_HCAPTCHA$/', $result ) ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_sets && ! $is_multibooking ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_set && ! $is_multibooking ) {
$replacement = eme_load_hcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_RECAPTCHA$/', $result ) ) {
if ( $eme_recaptcha_for_forms && ! $captcha_sets && ! $is_multibooking ) {
if ( $eme_recaptcha_for_forms && ! $captcha_set && ! $is_multibooking ) {
$replacement = eme_load_recaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_CAPTCHA$/', $result ) ) {
if ( $eme_captcha_for_forms && ! $captcha_sets && ! $is_multibooking ) {
if ( $eme_captcha_for_forms && ! $captcha_set && ! $is_multibooking ) {
$replacement = eme_load_captcha_html();
$captcha_set = 1;
$required = 1;
Expand Down Expand Up @@ -3889,22 +3889,22 @@ function eme_replace_membership_formfields_placeholders( $membership, $member, $
$replacement = "<div id='eme_dyndata'></div>";
}
} elseif ( preg_match( '/#_CFCAPTCHA$/', $result ) ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_cfcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_HCAPTCHA$/', $result ) ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_hcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_RECAPTCHA$/', $result ) ) {
if ( $eme_recaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_recaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_recaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_CAPTCHA$/', $result ) ) {
if ( $eme_captcha_for_forms && ! $captcha_sets ) {
if ( $eme_captcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_captcha_html();
$captcha_set = 1;
if ( ! $eme_is_admin_request ) {
Expand Down Expand Up @@ -4173,22 +4173,22 @@ function eme_replace_subscribeform_placeholders( $format, $unsubscribe = 0 ) {
}
$replacement = eme_ui_checkbox_binary( 0, 'gdpr', $label, 1, 'eme-gdpr-field' );
} elseif ( preg_match( '/#_CFCAPTCHA$/', $result ) ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_cfcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_HCAPTCHA$/', $result ) ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_hcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_RECAPTCHA$/', $result ) ) {
if ( $eme_recaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_recaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_recaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_CAPTCHA/', $result ) ) {
if ( $eme_captcha_for_forms && ! $captcha_sets ) {
if ( $eme_captcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_captcha_html();
$captcha_set = 1;
}
Expand Down Expand Up @@ -4448,22 +4448,22 @@ function eme_replace_cpiform_placeholders( $format, $person ) {
}
$replacement .= eme_ui_select_binary( $selected_massmail, 'massmail' );
} elseif ( preg_match( '/#_CFCAPTCHA$/', $result ) ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_cfcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_cfcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_HCAPTCHA$/', $result ) ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_hcaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_hcaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_RECAPTCHA$/', $result ) ) {
if ( $eme_recaptcha_for_forms && ! $captcha_sets ) {
if ( $eme_recaptcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_recaptcha_html();
$captcha_set = 1;
}
} elseif ( preg_match( '/#_CAPTCHA/', $result ) ) {
if ( $eme_captcha_for_forms && ! $captcha_sets ) {
if ( $eme_captcha_for_forms && ! $captcha_set ) {
$replacement = eme_load_captcha_html();
$captcha_set = 1;
}
Expand Down

0 comments on commit 4b95e32

Please sign in to comment.