Skip to content

Commit

Permalink
fix(donate-block): handle default frequency from attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek authored Jul 29, 2022
1 parent 5df9603 commit 4de797a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blocks/donate/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 4de797a

Please sign in to comment.