@automattic/newspack-blocks 4.16.0 → 4.16.1

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.16.1](https://github.com/Automattic/newspack-blocks/compare/v4.16.0...v4.16.1) (2025-10-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update subscriptions gifting method ([#2232](https://github.com/Automattic/newspack-blocks/issues/2232)) ([6b5e665](https://github.com/Automattic/newspack-blocks/commit/6b5e665c6797cb26228613fb7cdc96c8889455c5))
7
+
1
8
  # [4.16.0](https://github.com/Automattic/newspack-blocks/compare/v4.15.4...v4.16.0) (2025-10-06)
2
9
 
3
10
 
@@ -1294,7 +1294,7 @@ final class Modal_Checkout {
1294
1294
  if (
1295
1295
  1 === count( array_values( $cart_items ) ) &&
1296
1296
  method_exists( 'WCS_Gifting', 'email_belongs_to_current_user' ) &&
1297
- method_exists( 'WCS_Gifting', 'update_cart_item_key' ) &&
1297
+ method_exists( 'WCS_Gifting', 'update_cart_item_recipient' ) &&
1298
1298
  method_exists( 'WCSG_Cart', 'is_giftable_item' )
1299
1299
  ) {
1300
1300
  $is_gift = ! empty( filter_input( INPUT_POST, 'newspack_wcsg_is_gift', FILTER_SANITIZE_SPECIAL_CHARS ) );
@@ -1307,7 +1307,7 @@ final class Modal_Checkout {
1307
1307
 
1308
1308
  // If no errors, attach the recipient's email address to the subscription item.
1309
1309
  if ( $is_valid_email ) {
1310
- \WCS_Gifting::update_cart_item_key( $cart_item, $cart_item_key, $recipient_email );
1310
+ \WCS_Gifting::update_cart_item_recipient( $cart_item, $cart_item_key, $recipient_email );
1311
1311
  } else {
1312
1312
  $notice = $self_gifting
1313
1313
  ? __( 'Please enter someone else\' email address to receive this gift.', 'newspack-blocks' )
@@ -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.16.0
10
+ * Version: 4.16.1
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.16.0' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.16.1' );
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.16.0",
3
+ "version": "4.16.1",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.12.0",
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-trunk',
5
5
  'version' => 'dev-trunk',
6
- 'reference' => 'f374015b6d3b228f33c82c5b08cfc8a71dd32c36',
6
+ 'reference' => '6b5e665c6797cb26228613fb7cdc96c8889455c5',
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' => 'f374015b6d3b228f33c82c5b08cfc8a71dd32c36',
16
+ 'reference' => '6b5e665c6797cb26228613fb7cdc96c8889455c5',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),