From 4de797a396c7ca3f7f07416c44a9f87a8ce37af1 Mon Sep 17 00:00:00 2001 From: Adam Boro Date: Fri, 29 Jul 2022 20:49:44 +0200 Subject: [PATCH] fix(donate-block): handle default frequency from attributes --- src/blocks/donate/view.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blocks/donate/view.php b/src/blocks/donate/view.php index 5e6ff8b2e..e31310449 100644 --- a/src/blocks/donate/view.php +++ b/src/blocks/donate/view.php @@ -207,6 +207,8 @@ function newspack_blocks_render_block_donate( $attributes ) { return ''; } + $configuration['defaultFrequency'] = $attributes['defaultFrequency']; + /* If block has additional CSS class(es) */ if ( isset( $attributes['className'] ) ) { $classname = $attributes['className'];