Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
776514b
fix: linting issues (#2254)
rbcorrales Nov 14, 2025
a043376
chore: update translation files [skip ci]
matticbot Nov 14, 2025
df0e2f9
feat(donate-block): default frequency for tiered layout (#2248)
miguelpeixe Nov 14, 2025
ff25219
chore: update translation files [skip ci]
matticbot Nov 14, 2025
8ea43c0
build(deps-dev): bump dealerdirect/phpcodesniffer-composer-installer
dependabot[bot] Nov 17, 2025
f7b1482
chore: update translation files [skip ci]
matticbot Nov 17, 2025
07815ea
chore(release): merge in release v4.17.5
matticbot Nov 18, 2025
b791a3a
fix: add a max-width to the Content Carousel block (#2253)
laurelfulford Nov 19, 2025
73dfa8c
chore: update translation files [skip ci]
matticbot Nov 19, 2025
71380fb
chore(release): merge in release v4.17.6
matticbot Nov 19, 2025
9beb64e
fix: handle checkout form inline errors and expired sessions (#2255)
dkoo Nov 21, 2025
c7aee31
chore: update translation files [skip ci]
matticbot Nov 21, 2025
4d606ef
fix(modal-checkout): require change payment class (#2257)
miguelpeixe Nov 24, 2025
12dd274
chore: update translation files [skip ci]
matticbot Nov 24, 2025
ef4cbde
chore(release): merge in release v4.18.0
matticbot Nov 24, 2025
8db63fe
build(deps-dev): bump @types/lodash from 4.17.20 to 4.17.21
dependabot[bot] Nov 24, 2025
12a4eaf
chore: update translation files [skip ci]
matticbot Nov 24, 2025
8a7a9a4
Merge pull request #2262 from Automattic/trunk
miguelpeixe Nov 27, 2025
f10a42e
chore(release): 4.19.0-alpha.1 [skip ci]
semantic-release-bot Nov 27, 2025
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
29 changes: 12 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion includes/class-modal-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ public static function enqueue_scripts() {
'billing_details' => self::get_modal_checkout_labels( 'billing_details' ),
'shipping_details' => self::get_modal_checkout_labels( 'shipping_details' ),
'gift_recipient' => self::get_modal_checkout_labels( 'gift_recipient' ),
'critical_error' => self::get_modal_checkout_labels( 'checkout_critical_error' ),
'complete_button' => self::order_button_text_with_price(),
],
]
Expand Down Expand Up @@ -970,13 +971,18 @@ public static function enqueue_modal( $product_id = null ) {
'register_modal_title' => self::get_modal_checkout_labels( 'register_modal_title' ),
'signin_modal_title' => self::get_modal_checkout_labels( 'signin_modal_title' ),
'thankyou_modal_title' => self::get_modal_checkout_labels( 'checkout_success' ),
'critical_error' => self::get_modal_checkout_labels( 'checkout_critical_error' ),
],

'processing_payment_messages' => [
[
'text' => __( 'Processing payment...', 'newspack-blocks' ),
'delay' => 0,
],
[
'text' => __( 'Processing payment...', 'newspack-blocks' ),
'delay' => 250,
],
[
'text' => __( 'Verifying details...', 'newspack-blocks' ),
'delay' => 8000,
Expand Down Expand Up @@ -1551,7 +1557,7 @@ public static function woocommerce_cart_product_cannot_be_purchased_message( $me
*/
public static function hide_expiry_message_shop_link( $message ) {
if ( self::is_modal_checkout() && strpos( $message, 'Sorry, your session has expired' ) !== false ) {
return __( 'Could not complete this transaction. Please contact us for assistance.', 'newspack-blocks' );
return self::get_modal_checkout_labels( 'checkout_critical_error' );
}
return $message;
}
Expand Down Expand Up @@ -2029,6 +2035,7 @@ public static function get_modal_checkout_labels( $key = null ) {
'checkout_nyp_thankyou' => __( "Thank you for your generosity! We couldn't do this without you!", 'newspack-blocks' ),
'checkout_nyp_title' => __( 'Increase your support', 'newspack-blocks' ),
'checkout_nyp_apply' => __( 'Apply', 'newspack-blocks' ),
'checkout_critical_error' => __( 'We ran into a problem processing this request. Please try again.', 'newspack-blocks' ),
];

/**
Expand Down
88 changes: 44 additions & 44 deletions languages/newspack-blocks-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Newspack Blocks\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
"POT-Creation-Date: 2025-11-13T18:38:30+00:00\n"
"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n"
"PO-Revision-Date: 2024-08-30 08:45-0700\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -77,169 +77,169 @@ msgstr ""
msgid "Or"
msgstr ""

#: includes/class-modal-checkout.php:977
#: includes/class-modal-checkout.php:979 includes/class-modal-checkout.php:983
msgid "Processing payment..."
msgstr ""

#: includes/class-modal-checkout.php:981
#: includes/class-modal-checkout.php:987
msgid "Verifying details..."
msgstr ""

#: includes/class-modal-checkout.php:985
#: includes/class-modal-checkout.php:991
msgid "Finalizing transaction..."
msgstr ""

#: includes/class-modal-checkout.php:1041
#: includes/class-modal-checkout.php:1047
msgid ""
"We're sorry, there was an unexpected error. Please try again in a few "
"minutes."
msgstr ""

#: includes/class-modal-checkout.php:1053
#: includes/class-modal-checkout.php:1059
msgid "Go back"
msgstr ""

#: includes/class-modal-checkout.php:1143
#: includes/class-modal-checkout.php:1149
msgid "Password mismatch"
msgstr ""

#: includes/class-modal-checkout.php:1144
#: includes/class-modal-checkout.php:1150
msgid "Password strength: Very weak"
msgstr ""

#: includes/class-modal-checkout.php:1145
#: includes/class-modal-checkout.php:1151
msgid "Password strength: Weak"
msgstr ""

#: includes/class-modal-checkout.php:1146
#: includes/class-modal-checkout.php:1152
msgid "Password strength: Medium"
msgstr ""

#: includes/class-modal-checkout.php:1147
#: includes/class-modal-checkout.php:1153
msgid "Password strength: Strong"
msgstr ""

#: includes/class-modal-checkout.php:1328
#: includes/class-modal-checkout.php:1334
msgid "Please enter someone else' email address to receive this gift."
msgstr ""

#: includes/class-modal-checkout.php:1329
#: includes/class-modal-checkout.php:1335
msgid "Please enter a valid email address to receive this gift."
msgstr ""

#: includes/class-modal-checkout.php:1418
#: includes/class-modal-checkout.php:1424
msgid "Close window"
msgstr ""

#. translators: %s: Site name.
#: includes/class-modal-checkout.php:1505
#: includes/class-modal-checkout.php:1511
#, php-format
msgid ""
"You're already a subscriber! You can only have one active subscription at a "
"time. Thank you for supporting %s."
msgstr ""

#: includes/class-modal-checkout.php:1516
#: includes/class-modal-checkout.php:1522
msgid ""
"You're already a subscriber! You can only have one subscription at a time. "
"If you wish to renew an expired subscription, please sign in and visit the "
"subscriptions page on your account."
msgstr ""

#: includes/class-modal-checkout.php:1554
msgid "Could not complete this transaction. Please contact us for assistance."
msgstr ""

#. translators: 1: Checkout button confirmation text. 2: Order total.
#. translators: 1 is the name of the item. 2 is the price of the item.
#: includes/class-modal-checkout.php:1640
#: includes/modal-checkout/class-checkout-data.php:67
#: includes/class-modal-checkout.php:1646
#: includes/modal-checkout/class-checkout-data.php:68
#, php-format
msgid "%1$s: %2$s"
msgstr ""

#: includes/class-modal-checkout.php:1999
#: includes/class-modal-checkout.php:2005
msgid "Billing details"
msgstr ""

#: includes/class-modal-checkout.php:2000
#: includes/class-modal-checkout.php:2006
msgid "Shipping details"
msgstr ""

#: includes/class-modal-checkout.php:2001
#: includes/class-modal-checkout.php:2007
msgid "Gift recipient"
msgstr ""

#: includes/class-modal-checkout.php:2002
#: includes/class-modal-checkout.php:2003
#: includes/class-modal-checkout.php:2004
#: includes/class-modal-checkout.php:2008
#: includes/class-modal-checkout.php:2009
#: includes/class-modal-checkout.php:2010
msgid "Complete your transaction"
msgstr ""

#: includes/class-modal-checkout.php:2005
#: includes/class-modal-checkout.php:2011
msgctxt "Login modal title when logged out user attempts to checkout."
msgid "Sign in to complete transaction"
msgstr ""

#: includes/class-modal-checkout.php:2010
#: includes/class-modal-checkout.php:2016
msgctxt "Login modal title when unregistered user attempts to checkout"
msgid "Register to complete transaction"
msgstr ""

#: includes/class-modal-checkout.php:2015
#: includes/class-modal-checkout.php:2021
msgid "Continue browsing"
msgstr ""

#: includes/class-modal-checkout.php:2016
#: includes/class-modal-checkout.php:2022
msgid "This donation is a gift"
msgstr ""

#: includes/class-modal-checkout.php:2021
#: includes/class-modal-checkout.php:2027
msgid "This purchase is a gift"
msgstr ""

#: includes/class-modal-checkout.php:2023
#: includes/class-modal-checkout.php:2029
msgid "Complete transaction"
msgstr ""

#: includes/class-modal-checkout.php:2024
#: includes/class-modal-checkout.php:2030
msgid "Purchase"
msgstr ""

#: includes/class-modal-checkout.php:2025
#: includes/class-modal-checkout.php:2031
msgid "Edit billing information"
msgstr ""

#: includes/class-modal-checkout.php:2026 dist/editor.js:29
#: includes/class-modal-checkout.php:2032 dist/editor.js:29
#: src/blocks/checkout-button/edit.js:192
msgid "Cancel"
msgstr ""

#: includes/class-modal-checkout.php:2027
#: includes/class-modal-checkout.php:2033
msgid "Transaction successful"
msgstr ""

#: includes/class-modal-checkout.php:2028
#: includes/class-modal-checkout.php:2034
msgid ""
"Your contribution directly funds our work. If you're moved to do so, you can "
"opt to pay more than the standard rate."
msgstr ""

#: includes/class-modal-checkout.php:2029
#: includes/class-modal-checkout.php:2035
msgid "Thank you for your generosity! We couldn't do this without you!"
msgstr ""

#: includes/class-modal-checkout.php:2030
#: includes/class-modal-checkout.php:2036
msgid "Increase your support"
msgstr ""

#: includes/class-modal-checkout.php:2031
#: includes/class-modal-checkout.php:2037
#: src/modal-checkout/templates/form-coupon.php:20
msgid "Apply"
msgstr ""

#: includes/class-modal-checkout.php:2038
msgid "We ran into a problem processing this request. Please try again."
msgstr ""

#. Translators: %s is the site name.
#: includes/class-modal-checkout.php:2168
#: includes/class-modal-checkout.php:2175
#, php-format
msgid ""
"Thank you for supporting %s. Your transaction was completed successfully."
Expand Down Expand Up @@ -318,7 +318,7 @@ msgstr ""
msgid " per "
msgstr ""

#: includes/modal-checkout/class-checkout-data.php:301 dist/editor.js:35
#: includes/modal-checkout/class-checkout-data.php:310 dist/editor.js:35
#: src/blocks/donate/index.js:31
msgid "Donate"
msgstr "Spenden"
Expand Down
Loading