@automattic/newspack-blocks 4.26.1 → 4.26.2
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/languages/newspack-blocks-de_DE.po +4 -4
- package/languages/newspack-blocks-es_ES.po +4 -4
- package/languages/newspack-blocks-fr_BE.po +4 -4
- package/languages/newspack-blocks-nb_NO.po +4 -4
- package/languages/newspack-blocks-pt_PT.po +4 -4
- package/languages/newspack-blocks.pot +4 -4
- package/newspack-blocks.php +2 -2
- package/package.json +1 -1
- package/src/modal-checkout/templates/thankyou.php +7 -0
- package/vendor/composer/installed.php +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [4.26.2](https://github.com/Automattic/newspack-blocks/compare/v4.26.1...v4.26.2) (2026-05-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **modal-checkout:** retrieve order from query vars in thankyou template ([#2324](https://github.com/Automattic/newspack-blocks/issues/2324)) ([c483abd](https://github.com/Automattic/newspack-blocks/commit/c483abdc471e844e75fd0732b8cc878b52e58100))
|
|
7
|
+
|
|
1
8
|
## [4.26.1](https://github.com/Automattic/newspack-blocks/compare/v4.26.0...v4.26.1) (2026-04-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -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/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-04-
|
|
5
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+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"
|
|
@@ -691,17 +691,17 @@ msgstr ""
|
|
|
691
691
|
msgid "Recipient: "
|
|
692
692
|
msgstr ""
|
|
693
693
|
|
|
694
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
694
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
695
695
|
msgid ""
|
|
696
696
|
"Unfortunately your order cannot be processed. Please attempt your purchase "
|
|
697
697
|
"again."
|
|
698
698
|
msgstr ""
|
|
699
699
|
|
|
700
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
700
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
701
701
|
msgid "Pay"
|
|
702
702
|
msgstr ""
|
|
703
703
|
|
|
704
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
704
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
705
705
|
msgid "My account"
|
|
706
706
|
msgstr ""
|
|
707
707
|
|
|
@@ -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/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-04-
|
|
5
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+00:00\n"
|
|
6
6
|
"PO-Revision-Date: 2025-08-12T14:56:45+00:00\n"
|
|
7
7
|
"Last-Translator: \n"
|
|
8
8
|
"Language-Team: \n"
|
|
@@ -683,17 +683,17 @@ msgstr ""
|
|
|
683
683
|
msgid "Recipient: "
|
|
684
684
|
msgstr ""
|
|
685
685
|
|
|
686
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
686
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
687
687
|
msgid ""
|
|
688
688
|
"Unfortunately your order cannot be processed. Please attempt your purchase "
|
|
689
689
|
"again."
|
|
690
690
|
msgstr ""
|
|
691
691
|
|
|
692
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
692
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
693
693
|
msgid "Pay"
|
|
694
694
|
msgstr ""
|
|
695
695
|
|
|
696
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
696
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
697
697
|
msgid "My account"
|
|
698
698
|
msgstr ""
|
|
699
699
|
|
|
@@ -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/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-04-
|
|
5
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+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"
|
|
@@ -682,17 +682,17 @@ msgstr ""
|
|
|
682
682
|
msgid "Recipient: "
|
|
683
683
|
msgstr ""
|
|
684
684
|
|
|
685
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
685
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
686
686
|
msgid ""
|
|
687
687
|
"Unfortunately your order cannot be processed. Please attempt your purchase "
|
|
688
688
|
"again."
|
|
689
689
|
msgstr ""
|
|
690
690
|
|
|
691
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
691
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
692
692
|
msgid "Pay"
|
|
693
693
|
msgstr ""
|
|
694
694
|
|
|
695
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
695
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
696
696
|
msgid "My account"
|
|
697
697
|
msgstr ""
|
|
698
698
|
|
|
@@ -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/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-04-
|
|
5
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+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"
|
|
@@ -681,17 +681,17 @@ msgstr ""
|
|
|
681
681
|
msgid "Recipient: "
|
|
682
682
|
msgstr ""
|
|
683
683
|
|
|
684
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
684
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
685
685
|
msgid ""
|
|
686
686
|
"Unfortunately your order cannot be processed. Please attempt your purchase "
|
|
687
687
|
"again."
|
|
688
688
|
msgstr ""
|
|
689
689
|
|
|
690
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
690
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
691
691
|
msgid "Pay"
|
|
692
692
|
msgstr ""
|
|
693
693
|
|
|
694
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
694
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
695
695
|
msgid "My account"
|
|
696
696
|
msgstr ""
|
|
697
697
|
|
|
@@ -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/newspack-blocks\n"
|
|
5
|
-
"POT-Creation-Date: 2026-04-
|
|
5
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+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"
|
|
@@ -681,17 +681,17 @@ msgstr ""
|
|
|
681
681
|
msgid "Recipient: "
|
|
682
682
|
msgstr ""
|
|
683
683
|
|
|
684
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
684
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
685
685
|
msgid ""
|
|
686
686
|
"Unfortunately your order cannot be processed. Please attempt your purchase "
|
|
687
687
|
"again."
|
|
688
688
|
msgstr ""
|
|
689
689
|
|
|
690
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
690
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
691
691
|
msgid "Pay"
|
|
692
692
|
msgstr ""
|
|
693
693
|
|
|
694
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
694
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
695
695
|
msgid "My account"
|
|
696
696
|
msgstr ""
|
|
697
697
|
|
|
@@ -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: 2026-04-
|
|
12
|
+
"POT-Creation-Date: 2026-04-08T13:01:54+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"
|
|
@@ -687,15 +687,15 @@ msgstr ""
|
|
|
687
687
|
msgid "Recipient: "
|
|
688
688
|
msgstr ""
|
|
689
689
|
|
|
690
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
690
|
+
#: src/modal-checkout/templates/thankyou.php:85
|
|
691
691
|
msgid "Unfortunately your order cannot be processed. Please attempt your purchase again."
|
|
692
692
|
msgstr ""
|
|
693
693
|
|
|
694
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
694
|
+
#: src/modal-checkout/templates/thankyou.php:88
|
|
695
695
|
msgid "Pay"
|
|
696
696
|
msgstr ""
|
|
697
697
|
|
|
698
|
-
#: src/modal-checkout/templates/thankyou.php:
|
|
698
|
+
#: src/modal-checkout/templates/thankyou.php:90
|
|
699
699
|
msgid "My account"
|
|
700
700
|
msgstr ""
|
|
701
701
|
|
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.26.
|
|
10
|
+
* Version: 4.26.2
|
|
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.26.
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '4.26.2' );
|
|
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.26.
|
|
3
|
+
"version": "4.26.2",
|
|
4
4
|
"author": "Automattic",
|
|
5
5
|
"description": "=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
|
|
6
6
|
"repository": {
|
|
@@ -31,6 +31,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
|
31
31
|
* existing customer account.
|
|
32
32
|
* phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
|
33
33
|
*/
|
|
34
|
+
// When this template replaces global/form-login.php, $order is not provided by WooCommerce.
|
|
35
|
+
// Retrieve it from the URL query vars, the same way WooCommerce does in the order-received endpoint.
|
|
36
|
+
if ( ! isset( $order ) || ! $order ) {
|
|
37
|
+
$order_id = absint( \get_query_var( 'order-received' ) );
|
|
38
|
+
$order = $order_id ? \wc_get_order( $order_id ) : false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
$key = isset( $_GET['key'] ) ? \wc_clean( \sanitize_text_field( \wp_unslash( $_GET['key'] ) ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
|
35
42
|
$is_valid = $order && is_a( $order, 'WC_Order' ) && hash_equals( $order->get_order_key(), $key ); // Validate order key to prevent CSRF.
|
|
36
43
|
|
|
@@ -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' => '3ff613f88cccc3a47ee2273db7a52d87249866d7',
|
|
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' => '3ff613f88cccc3a47ee2273db7a52d87249866d7',
|
|
17
17
|
'type' => 'wordpress-plugin',
|
|
18
18
|
'install_path' => __DIR__ . '/../../',
|
|
19
19
|
'aliases' => array(),
|