Skip to content

Commit

Permalink
Form created before installing CHIP should adhere to global configura…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
wzul committed Feb 17, 2023
1 parent 08c471b commit e2f30ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions chip-for-givewp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: CHIP for GiveWP
* Plugin URI: https://wordpress.org/plugins/chip-for-givewp/
* Description: CHIP - Better Payment & Business Solutions
* Version: 1.0.1
* Version: 1.0.2
* Author: Chip In Sdn Bhd
* Author URI: https://www.chip-in.asia
*
Expand All @@ -13,7 +13,7 @@
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

define( 'GWP_CHIP_MODULE_VERSION', 'v1.0.1');
define( 'GWP_CHIP_MODULE_VERSION', 'v1.0.2');

class Chip_Givewp {

Expand Down 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 ), [ 'enabled', 'global' ] )
&& ! give_is_setting_enabled( give_get_meta( $form_id, '_give_customize_chip_donations', true, 'global' ), [ 'enabled', 'global' ] )
) {
unset( $gateway_list['chip'] );
}
Expand All @@ -96,7 +96,7 @@ public function filter_gateway( $gateway_list, $form_id ) {
}

public function billing_fields( $form_id ) {
$chip_customization = give_get_meta( $form_id, '_give_customize_chip_donations', true );
$chip_customization = give_get_meta( $form_id, '_give_customize_chip_donations', true, 'global' );
$billing_fields = give_get_meta( $form_id, '_give_chip-enable-billing-fields', true );

$global_billing_fields = give_get_option( 'chip-enable-billing-fields' );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: chipasia, wanzulnet
Tags: chip
Requires at least: 4.7
Tested up to: 6.1
Stable tag: 1.0.1
Stable tag: 1.0.2
Requires PHP: 7.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -27,6 +27,9 @@ This plugin will enable your GiveWP site to be integrated with CHIP as per docum

== Changelog ==

= 1.0.2 - 2023-02-17 =
* Fixed - Form created before installing CHIP should adhere to global configuration.

= 1.0.1 - 2022-11-30 =
* Fixed - First and Last name should be separated with space.

Expand Down

0 comments on commit e2f30ae

Please sign in to comment.