diff --git a/assets/blocks/reader-registration/index.php b/assets/blocks/reader-registration/index.php index 711c13fef4..288d7c9fa6 100644 --- a/assets/blocks/reader-registration/index.php +++ b/assets/blocks/reader-registration/index.php @@ -113,8 +113,12 @@ function render_block( $attrs, $content ) { // phpcs:disable WordPress.Security.NonceVerification.Recommended if ( - \is_user_logged_in() || - ( isset( $_GET['newspack_reader'] ) && absint( $_GET['newspack_reader'] ) ) + ! \is_preview() && + ( ! method_exists( '\Newspack_Popups', 'is_preview_request' ) || ! \Newspack_Popups::is_preview_request() ) && + ( + \is_user_logged_in() || + ( isset( $_GET['newspack_reader'] ) && absint( $_GET['newspack_reader'] ) ) + ) ) { $registered = true; $message = $success_message;