Skip to content

Commit

Permalink
Change default behavior to disable for forms without configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wzul authored Nov 28, 2022
1 parent d299e3f commit 1cc1503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chip-for-givewp.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function filter_gateway( $gateway_list, $form_id ) {
if (
( false === strpos( $_SERVER['REQUEST_URI'], '/wp-admin/post-new.php?post_type=give_forms' ) )
&& $form_id
&& ! give_is_setting_enabled( give_get_meta( $form_id, '_give_customize_chip_donations', true, 'global' ), [ 'enabled', 'global' ] )
&& ! give_is_setting_enabled( give_get_meta( $form_id, '_give_customize_chip_donations', true ), [ 'enabled', 'global' ] )
) {
unset( $gateway_list['chip'] );
}
Expand Down

0 comments on commit 1cc1503

Please sign in to comment.