From d0c6ad1cacc0c6aebfaec584de598dcc9e91294d Mon Sep 17 00:00:00 2001 From: leogermani Date: Tue, 2 Dec 2025 17:47:55 -0300 Subject: [PATCH 1/5] feat: supress carousel block from feeds (#2263) --- src/blocks/carousel/view.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/blocks/carousel/view.php b/src/blocks/carousel/view.php index 372e65fb2..04497a9cd 100644 --- a/src/blocks/carousel/view.php +++ b/src/blocks/carousel/view.php @@ -13,6 +13,12 @@ * @return string Returns the post content with latest posts added. */ function newspack_blocks_render_block_carousel( $attributes ) { + + // Don't output the block inside RSS feeds. + if ( is_feed() ) { + return; + } + static $newspack_blocks_carousel_id = 0; global $newspack_blocks_post_id; From be0b57eac30d71a9b841b80201b4a30e61c11b56 Mon Sep 17 00:00:00 2001 From: matticbot Date: Tue, 2 Dec 2025 20:50:25 +0000 Subject: [PATCH 2/5] chore: update translation files [skip ci] --- languages/newspack-blocks-de_DE.po | 12 ++++++------ languages/newspack-blocks-es_ES.po | 12 ++++++------ languages/newspack-blocks-fr_BE.po | 12 ++++++------ languages/newspack-blocks-nb_NO.po | 12 ++++++------ languages/newspack-blocks-pt_PT.po | 12 ++++++------ languages/newspack-blocks.pot | 12 ++++++------ 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/languages/newspack-blocks-de_DE.po b/languages/newspack-blocks-de_DE.po index 75fda48d8..4ffbd6355 100644 --- a/languages/newspack-blocks-de_DE.po +++ b/languages/newspack-blocks-de_DE.po @@ -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-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: 2024-08-30 08:45-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -496,24 +496,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "Gehe zu Bild %d" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "Vorheriger Slide" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "Nächste Folie" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "Diashow pausieren" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "Diashow abspielen" diff --git a/languages/newspack-blocks-es_ES.po b/languages/newspack-blocks-es_ES.po index ba8a79e15..852e13de7 100644 --- a/languages/newspack-blocks-es_ES.po +++ b/languages/newspack-blocks-es_ES.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: 2025-08-12T14:56:45+00:00\n" "Last-Translator: \n" "Language-Team: \n" @@ -488,24 +488,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "" diff --git a/languages/newspack-blocks-fr_BE.po b/languages/newspack-blocks-fr_BE.po index 0ed081853..238c4e2a8 100644 --- a/languages/newspack-blocks-fr_BE.po +++ b/languages/newspack-blocks-fr_BE.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -486,24 +486,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "Allez à la diapositive %d" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "Diapositive précédente" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "Diapositive suivante" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "Mettre le diaporama en pause" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "Démarrer le diaporama" diff --git a/languages/newspack-blocks-nb_NO.po b/languages/newspack-blocks-nb_NO.po index 32a0f4731..f8f7a03d8 100644 --- a/languages/newspack-blocks-nb_NO.po +++ b/languages/newspack-blocks-nb_NO.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -486,24 +486,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "" diff --git a/languages/newspack-blocks-pt_PT.po b/languages/newspack-blocks-pt_PT.po index 4c8f7e82f..afb9f031d 100644 --- a/languages/newspack-blocks-pt_PT.po +++ b/languages/newspack-blocks-pt_PT.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -486,24 +486,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "Slide Anterior" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "Próximo Slide" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "Pausa na apresentação" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "" diff --git a/languages/newspack-blocks.pot b/languages/newspack-blocks.pot index d290bb7da..079892284 100644 --- a/languages/newspack-blocks.pot +++ b/languages/newspack-blocks.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2025-11-24T20:10:24+00:00\n" +"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: newspack-blocks\n" @@ -480,24 +480,24 @@ msgid "Subscribe Pattern 7" msgstr "" #. translators: %d: Slide number. -#: src/blocks/carousel/view.php:221 +#: src/blocks/carousel/view.php:227 #, php-format msgid "Go to slide %d" msgstr "" -#: src/blocks/carousel/view.php:242 +#: src/blocks/carousel/view.php:248 msgid "Previous Slide" msgstr "" -#: src/blocks/carousel/view.php:243 +#: src/blocks/carousel/view.php:249 msgid "Next Slide" msgstr "" -#: src/blocks/carousel/view.php:287 +#: src/blocks/carousel/view.php:293 msgid "Pause Slideshow" msgstr "" -#: src/blocks/carousel/view.php:288 +#: src/blocks/carousel/view.php:294 msgid "Play Slideshow" msgstr "" From 3af1ea720849058e4fea15aa4adb498c8aa564a0 Mon Sep 17 00:00:00 2001 From: Derrick Koo Date: Wed, 3 Dec 2025 10:28:43 -0700 Subject: [PATCH 3/5] fix: avoid redeclaration of global function (#2264) * fix: avoid redeclaration of global function * chore: remove unnecessary get_order_key(), $key ); // Validate order key to prevent CSRF. +$key = isset( $_GET['key'] ) ? \wc_clean( \sanitize_text_field( \wp_unslash( $_GET['key'] ) ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended +$is_valid = $order && is_a( $order, 'WC_Order' ) && hash_equals( $order->get_order_key(), $key ); // Validate order key to prevent CSRF. - if ( ! $is_valid ) { - return; - } - - $is_success = ! $order->has_status( 'failed' ); - $after_success_behavior = isset( $_GET['after_success_behavior'] ) ? \sanitize_text_field( \wp_unslash( $_GET['after_success_behavior'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $after_success_url = isset( $_GET['after_success_url'] ) ? esc_url( \sanitize_url( \wp_unslash( $_GET['after_success_url'] ) ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $after_success_label = isset( $_GET['after_success_button_label'] ) ? \sanitize_text_field( \wp_unslash( $_GET['after_success_button_label'] ) ) : \Newspack_Blocks\Modal_Checkout::get_modal_checkout_labels( 'after_success' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $checkout_data = Checkout_Data::get_checkout_data( $order ); - ?> -
- -
- - - - - -
-
- - - - - - - -
- -
-

- -

-
- - - - - has_status( 'failed' ); +$after_success_behavior = isset( $_GET['after_success_behavior'] ) ? \sanitize_text_field( \wp_unslash( $_GET['after_success_behavior'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended +$after_success_url = isset( $_GET['after_success_url'] ) ? esc_url( \sanitize_url( \wp_unslash( $_GET['after_success_url'] ) ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended +$after_success_label = isset( $_GET['after_success_button_label'] ) ? \sanitize_text_field( \wp_unslash( $_GET['after_success_button_label'] ) ) : \Newspack_Blocks\Modal_Checkout::get_modal_checkout_labels( 'after_success' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended +$checkout_data = Checkout_Data::get_checkout_data( $order ); +?> +
+ +
+ + + + + +
+
+ + + + + + + +
+ +
+

+ +

+
+ + + + + Date: Wed, 3 Dec 2025 17:31:35 +0000 Subject: [PATCH 4/5] chore: update translation files [skip ci] --- languages/newspack-blocks-de_DE.po | 8 ++++---- languages/newspack-blocks-es_ES.po | 8 ++++---- languages/newspack-blocks-fr_BE.po | 8 ++++---- languages/newspack-blocks-nb_NO.po | 8 ++++---- languages/newspack-blocks-pt_PT.po | 8 ++++---- languages/newspack-blocks.pot | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/languages/newspack-blocks-de_DE.po b/languages/newspack-blocks-de_DE.po index 4ffbd6355..273ab3ebc 100644 --- a/languages/newspack-blocks-de_DE.po +++ b/languages/newspack-blocks-de_DE.po @@ -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-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: 2024-08-30 08:45-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -657,17 +657,17 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "" "Unfortunately your order cannot be processed. Please attempt your purchase " "again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" diff --git a/languages/newspack-blocks-es_ES.po b/languages/newspack-blocks-es_ES.po index 852e13de7..28fdf9d36 100644 --- a/languages/newspack-blocks-es_ES.po +++ b/languages/newspack-blocks-es_ES.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: 2025-08-12T14:56:45+00:00\n" "Last-Translator: \n" "Language-Team: \n" @@ -649,17 +649,17 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "" "Unfortunately your order cannot be processed. Please attempt your purchase " "again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" diff --git a/languages/newspack-blocks-fr_BE.po b/languages/newspack-blocks-fr_BE.po index 238c4e2a8..779817270 100644 --- a/languages/newspack-blocks-fr_BE.po +++ b/languages/newspack-blocks-fr_BE.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -648,17 +648,17 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "" "Unfortunately your order cannot be processed. Please attempt your purchase " "again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" diff --git a/languages/newspack-blocks-nb_NO.po b/languages/newspack-blocks-nb_NO.po index f8f7a03d8..aac1d1bc6 100644 --- a/languages/newspack-blocks-nb_NO.po +++ b/languages/newspack-blocks-nb_NO.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -647,17 +647,17 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "" "Unfortunately your order cannot be processed. Please attempt your purchase " "again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" diff --git a/languages/newspack-blocks-pt_PT.po b/languages/newspack-blocks-pt_PT.po index afb9f031d..3be593e44 100644 --- a/languages/newspack-blocks-pt_PT.po +++ b/languages/newspack-blocks-pt_PT.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" -"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: 2024-08-30 08:46-0700\n" "Last-Translator: \n" "Language-Team: \n" @@ -647,17 +647,17 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "" "Unfortunately your order cannot be processed. Please attempt your purchase " "again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" diff --git a/languages/newspack-blocks.pot b/languages/newspack-blocks.pot index 079892284..a9782ab9d 100644 --- a/languages/newspack-blocks.pot +++ b/languages/newspack-blocks.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2025-12-02T20:50:13+00:00\n" +"POT-Creation-Date: 2025-12-03T17:31:19+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: newspack-blocks\n" @@ -638,15 +638,15 @@ msgstr "" msgid "Recipient: " msgstr "" -#: src/modal-checkout/templates/thankyou.php:79 +#: src/modal-checkout/templates/thankyou.php:78 msgid "Unfortunately your order cannot be processed. Please attempt your purchase again." msgstr "" -#: src/modal-checkout/templates/thankyou.php:82 +#: src/modal-checkout/templates/thankyou.php:81 msgid "Pay" msgstr "" -#: src/modal-checkout/templates/thankyou.php:84 +#: src/modal-checkout/templates/thankyou.php:83 msgid "My account" msgstr "" From c61808b7e90403be46cc67b9526730fec8e3617f Mon Sep 17 00:00:00 2001 From: matticbot Date: Thu, 11 Dec 2025 15:06:02 +0000 Subject: [PATCH 5/5] chore(release): 4.20.0-alpha.1 [skip ci] # [4.20.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v4.19.0...v4.20.0-alpha.1) (2025-12-11) ### Bug Fixes * avoid redeclaration of global function ([#2264](https://github.com/Automattic/newspack-blocks/issues/2264)) ([3af1ea7](https://github.com/Automattic/newspack-blocks/commit/3af1ea720849058e4fea15aa4adb498c8aa564a0)) ### Features * supress carousel block from feeds ([#2263](https://github.com/Automattic/newspack-blocks/issues/2263)) ([d0c6ad1](https://github.com/Automattic/newspack-blocks/commit/d0c6ad1cacc0c6aebfaec584de598dcc9e91294d)) --- newspack-blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newspack-blocks.php b/newspack-blocks.php index b5e27a658..2ab437f6c 100755 --- a/newspack-blocks.php +++ b/newspack-blocks.php @@ -7,7 +7,7 @@ * Author URI: https://newspack.com/ * Text Domain: newspack-blocks * Domain Path: /languages - * Version: 4.19.0 + * Version: 4.20.0-alpha.1 * * @package Newspack_Blocks */ @@ -15,7 +15,7 @@ define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ ); define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' ); define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) ); -define( 'NEWSPACK_BLOCKS__VERSION', '4.19.0' ); +define( 'NEWSPACK_BLOCKS__VERSION', '4.20.0-alpha.1' ); require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php'; require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';