@automattic/newspack-blocks 4.14.7 → 4.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/includes/modal-checkout/class-checkout-data.php +16 -3
- package/languages/newspack-blocks-de_DE.po +3 -3
- package/languages/newspack-blocks-es_ES.po +3 -3
- package/languages/newspack-blocks-fr_BE.po +3 -3
- package/languages/newspack-blocks-nb_NO.po +3 -3
- package/languages/newspack-blocks-pt_PT.po +3 -3
- package/languages/newspack-blocks.pot +3 -3
- package/newspack-blocks.php +2 -2
- package/package.json +2 -2
- package/vendor/composer/installed.php +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [4.14.8](https://github.com/Automattic/newspack-blocks/compare/v4.14.7...v4.14.8) (2025-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **modal-checkout:** account for signup fee in price summary ([#2183](https://github.com/Automattic/newspack-blocks/issues/2183)) ([9ba0a6a](https://github.com/Automattic/newspack-blocks/commit/9ba0a6a84fd727e42bec3db2813b2530cab0dbfa))
|
|
7
|
+
|
|
1
8
|
## [4.14.7](https://github.com/Automattic/newspack-blocks/compare/v4.14.6...v4.14.7) (2025-08-12)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -30,13 +30,15 @@ final class Checkout_Data {
|
|
|
30
30
|
if ( $frequency && $frequency !== 'once' ) {
|
|
31
31
|
// Get additional subscription details if product_id is provided.
|
|
32
32
|
$subscription_interval = 1;
|
|
33
|
-
$trial_length
|
|
34
|
-
$trial_period
|
|
33
|
+
$trial_length = 0;
|
|
34
|
+
$trial_period = '';
|
|
35
|
+
$initial_amount = 0;
|
|
35
36
|
|
|
36
37
|
if ( $product_id ) {
|
|
37
38
|
$subscription_interval = get_post_meta( $product_id, '_subscription_period_interval', true );
|
|
38
39
|
$trial_length = get_post_meta( $product_id, '_subscription_trial_length', true );
|
|
39
40
|
$trial_period = get_post_meta( $product_id, '_subscription_trial_period', true );
|
|
41
|
+
$initial_amount = get_post_meta( $product_id, '_subscription_sign_up_fee', true );
|
|
40
42
|
|
|
41
43
|
if ( empty( $subscription_interval ) ) {
|
|
42
44
|
$subscription_interval = 1;
|
|
@@ -52,6 +54,7 @@ final class Checkout_Data {
|
|
|
52
54
|
'use_per_slash' => true,
|
|
53
55
|
'trial_length' => $trial_length,
|
|
54
56
|
'trial_period' => $trial_period,
|
|
57
|
+
'initial_amount' => $initial_amount,
|
|
55
58
|
]
|
|
56
59
|
)
|
|
57
60
|
);
|
|
@@ -61,7 +64,17 @@ final class Checkout_Data {
|
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
// translators: 1 is the name of the item. 2 is the price of the item.
|
|
64
|
-
|
|
67
|
+
$price_summary = sprintf( __( '%1$s: %2$s', 'newspack-blocks' ), $name, $price );
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Filters the price summary string that appears in modal checkout.
|
|
71
|
+
*
|
|
72
|
+
* @param string $price_summary The formatted price summary string.
|
|
73
|
+
* @param string $product_id The product ID, if available.
|
|
74
|
+
*
|
|
75
|
+
* @return string The filtered price summary string.
|
|
76
|
+
*/
|
|
77
|
+
return apply_filters( 'newspack_modal_checkout_price_summary', $price_summary, $product_id );
|
|
65
78
|
}
|
|
66
79
|
|
|
67
80
|
/**
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2025-08-
|
|
5
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:45-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -138,7 +138,7 @@ msgstr ""
|
|
|
138
138
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
139
139
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
140
140
|
#: includes/class-modal-checkout.php:1630
|
|
141
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
141
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
142
142
|
#, php-format
|
|
143
143
|
msgid "%1$s: %2$s"
|
|
144
144
|
msgstr ""
|
|
@@ -298,7 +298,7 @@ msgstr ""
|
|
|
298
298
|
msgid " per "
|
|
299
299
|
msgstr ""
|
|
300
300
|
|
|
301
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
301
|
+
#: includes/modal-checkout/class-checkout-data.php:255 dist/editor.js:35
|
|
302
302
|
#: src/blocks/donate/index.js:25
|
|
303
303
|
msgid "Donate"
|
|
304
304
|
msgstr "Spenden"
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2025-08-
|
|
5
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:45-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -128,7 +128,7 @@ msgstr ""
|
|
|
128
128
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
129
129
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
130
130
|
#: includes/class-modal-checkout.php:1630
|
|
131
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
131
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
132
132
|
#, php-format
|
|
133
133
|
msgid "%1$s: %2$s"
|
|
134
134
|
msgstr ""
|
|
@@ -288,7 +288,7 @@ msgstr ""
|
|
|
288
288
|
msgid " per "
|
|
289
289
|
msgstr ""
|
|
290
290
|
|
|
291
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
291
|
+
#: includes/modal-checkout/class-checkout-data.php:255 dist/editor.js:35
|
|
292
292
|
#: src/blocks/donate/index.js:25
|
|
293
293
|
msgid "Donate"
|
|
294
294
|
msgstr ""
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2025-08-
|
|
5
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -128,7 +128,7 @@ msgstr ""
|
|
|
128
128
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
129
129
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
130
130
|
#: includes/class-modal-checkout.php:1630
|
|
131
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
131
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
132
132
|
#, php-format
|
|
133
133
|
msgid "%1$s: %2$s"
|
|
134
134
|
msgstr ""
|
|
@@ -288,7 +288,7 @@ msgstr ""
|
|
|
288
288
|
msgid " per "
|
|
289
289
|
msgstr ""
|
|
290
290
|
|
|
291
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
291
|
+
#: includes/modal-checkout/class-checkout-data.php:255 dist/editor.js:35
|
|
292
292
|
#: src/blocks/donate/index.js:25
|
|
293
293
|
msgid "Donate"
|
|
294
294
|
msgstr ""
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2025-08-
|
|
5
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -128,7 +128,7 @@ msgstr ""
|
|
|
128
128
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
129
129
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
130
130
|
#: includes/class-modal-checkout.php:1630
|
|
131
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
131
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
132
132
|
#, php-format
|
|
133
133
|
msgid "%1$s: %2$s"
|
|
134
134
|
msgstr ""
|
|
@@ -288,7 +288,7 @@ msgstr ""
|
|
|
288
288
|
msgid " per "
|
|
289
289
|
msgstr ""
|
|
290
290
|
|
|
291
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
291
|
+
#: includes/modal-checkout/class-checkout-data.php:255 dist/editor.js:35
|
|
292
292
|
#: src/blocks/donate/index.js:25
|
|
293
293
|
msgid "Donate"
|
|
294
294
|
msgstr ""
|
|
@@ -2,7 +2,7 @@ msgid ""
|
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
|
|
4
4
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
|
|
5
|
-
"POT-Creation-Date: 2025-08-
|
|
5
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2024-08-30 08:46-0700\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -128,7 +128,7 @@ msgstr ""
|
|
|
128
128
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
129
129
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
130
130
|
#: includes/class-modal-checkout.php:1630
|
|
131
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
131
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
132
132
|
#, php-format
|
|
133
133
|
msgid "%1$s: %2$s"
|
|
134
134
|
msgstr ""
|
|
@@ -288,7 +288,7 @@ msgstr ""
|
|
|
288
288
|
msgid " per "
|
|
289
289
|
msgstr ""
|
|
290
290
|
|
|
291
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
291
|
+
#: includes/modal-checkout/class-checkout-data.php:255 dist/editor.js:35
|
|
292
292
|
#: src/blocks/donate/index.js:25
|
|
293
293
|
msgid "Donate"
|
|
294
294
|
msgstr "Doação"
|
|
@@ -9,7 +9,7 @@ msgstr ""
|
|
|
9
9
|
"MIME-Version: 1.0\n"
|
|
10
10
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
11
11
|
"Content-Transfer-Encoding: 8bit\n"
|
|
12
|
-
"POT-Creation-Date: 2025-08-
|
|
12
|
+
"POT-Creation-Date: 2025-08-11T19:44:30+00:00\n"
|
|
13
13
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
14
|
"X-Generator: WP-CLI 2.12.0\n"
|
|
15
15
|
"X-Domain: newspack-blocks\n"
|
|
@@ -125,7 +125,7 @@ msgstr ""
|
|
|
125
125
|
#. translators: 1: Checkout button confirmation text. 2: Order total.
|
|
126
126
|
#. translators: 1 is the name of the item. 2 is the price of the item.
|
|
127
127
|
#: includes/class-modal-checkout.php:1630
|
|
128
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
128
|
+
#: includes/modal-checkout/class-checkout-data.php:67
|
|
129
129
|
#, php-format
|
|
130
130
|
msgid "%1$s: %2$s"
|
|
131
131
|
msgstr ""
|
|
@@ -283,7 +283,7 @@ msgstr ""
|
|
|
283
283
|
msgid " per "
|
|
284
284
|
msgstr ""
|
|
285
285
|
|
|
286
|
-
#: includes/modal-checkout/class-checkout-data.php:
|
|
286
|
+
#: includes/modal-checkout/class-checkout-data.php:255
|
|
287
287
|
#: dist/editor.js:35
|
|
288
288
|
#: src/blocks/donate/index.js:25
|
|
289
289
|
msgid "Donate"
|
package/newspack-blocks.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Author URI: https://newspack.com/
|
|
8
8
|
* Text Domain: newspack-blocks
|
|
9
9
|
* Domain Path: /languages
|
|
10
|
-
* Version: 4.14.
|
|
10
|
+
* Version: 4.14.8
|
|
11
11
|
*
|
|
12
12
|
* @package Newspack_Blocks
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
|
|
16
16
|
define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
|
|
17
17
|
define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
|
|
18
|
-
define( 'NEWSPACK_BLOCKS__VERSION', '4.14.
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '4.14.8' );
|
|
19
19
|
|
|
20
20
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
|
|
21
21
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/newspack-blocks",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.8",
|
|
4
4
|
"author": "Automattic",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@rushstack/eslint-patch": "^1.12.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"fetch-mock-jest": "^1.5.1",
|
|
13
13
|
"html-entities": "^2.6.0",
|
|
14
14
|
"identity-obj-proxy": "^3.0.0",
|
|
15
|
-
"lint-staged": "^16.1.
|
|
15
|
+
"lint-staged": "^16.1.4",
|
|
16
16
|
"newspack-components": "^3.1.0",
|
|
17
17
|
"newspack-scripts": "^5.5.2",
|
|
18
18
|
"postcss-scss": "^4.0.9"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
'name' => 'automattic/newspack-blocks',
|
|
4
4
|
'pretty_version' => 'dev-trunk',
|
|
5
5
|
'version' => 'dev-trunk',
|
|
6
|
-
'reference' => '
|
|
6
|
+
'reference' => '9ba0a6a84fd727e42bec3db2813b2530cab0dbfa',
|
|
7
7
|
'type' => 'wordpress-plugin',
|
|
8
8
|
'install_path' => __DIR__ . '/../../',
|
|
9
9
|
'aliases' => array(),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
'automattic/newspack-blocks' => array(
|
|
14
14
|
'pretty_version' => 'dev-trunk',
|
|
15
15
|
'version' => 'dev-trunk',
|
|
16
|
-
'reference' => '
|
|
16
|
+
'reference' => '9ba0a6a84fd727e42bec3db2813b2530cab0dbfa',
|
|
17
17
|
'type' => 'wordpress-plugin',
|
|
18
18
|
'install_path' => __DIR__ . '/../../',
|
|
19
19
|
'aliases' => array(),
|