← All changes
|
src/PaymentGateways/Gateways/Stripe/Traits/CheckoutModal.php
+2
-1
4.15.3
→
4.18.0
View file →
| @@ -13,8 +13,9 @@ | ||
| 13 | 13 | /** |
| 14 | 14 | * @param int $formId Donation Form ID. |
| 15 | 15 | * @param array $args Donation Form Arguments. |
| 16 | 16 | * |
| 17 | + * @since 4.16.3 Escaped the submit button label in the Stripe checkout modal. | |
| 17 | 18 | * @since 2.19.0 Migrated from the legacy Give_Stripe_Checkout::showCheckoutModal implementation of the Stripe Checkout Gateway. |
| 18 | 19 | * |
| 19 | 20 | * @return string |
| 20 | 21 | */ |
| @@ -128,9 +129,9 @@ | ||
| 128 | 129 | echo sprintf( |
| 129 | 130 | '<input type="submit" class="%1$s" id="%2$s" value="%3$s" data-before-validation-label="%3$s" name="%4$s" data-is_legacy_form="%5$s" disabled/>', |
| 130 | 131 | FormUtils::isLegacyForm() ? 'give-btn give-stripe-checkout-modal-donate-button' : 'give-btn give-stripe-checkout-modal-sequoia-donate-button', |
| 131 | 132 | "give-stripe-checkout-modal-donate-button-{$idPrefix}", |
| 132 | - $display_label, | |
| 133 | + esc_attr($display_label), | |
| 133 | 134 | 'give_stripe_modal_donate', |
| 134 | 135 | FormUtils::isLegacyForm() |
| 135 | 136 | ); |
| 136 | 137 | ?> |