Skip to content

Commit

Permalink
feat(donations): remove defaultFrequency from the configuration
Browse files Browse the repository at this point in the history
It's not configurable. See Automattic/newspack-blocks#1218
  • Loading branch information
adekbadek committed Jul 29, 2022
1 parent 0a4b499 commit 4323f42
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion includes/class-donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ private static function get_donation_default_settings() {
'year' => [ 84, 180, 360, 180 ],
],
'tiered' => false,
'defaultFrequency' => 'month',
'disabledFrequencies' => [
'once' => false,
'month' => false,
Expand Down
4 changes: 0 additions & 4 deletions includes/wizards/class-reader-revenue-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ public function register_api_endpoints() {
'required' => false,
'sanitize_callback' => 'Newspack\newspack_string_to_bool',
],
'defaultFrequency' => [
'required' => false,
'sanitize_callback' => 'sanitize_text_field',
],
'disabledFrequencies' => [
'required' => false,
],
Expand Down
1 change: 0 additions & 1 deletion tests/unit-tests/donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function test_donations_settings() {
[
'amounts',
'tiered',
'defaultFrequency',
'disabledFrequencies',
'platform',
'currencySymbol',
Expand Down

0 comments on commit 4323f42

Please sign in to comment.