Skip to content

Commit

Permalink
Merge branch 'release/2.0' into issues/1944
Browse files Browse the repository at this point in the history
# Conflicts:
#	includes/admin/upgrades/upgrade-functions.php
  • Loading branch information
ravinderk committed Dec 7, 2017
2 parents cbb3495 + 6ea7778 commit 5538daa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/payments/backward-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function _give_20_bc_split_and_save_give_payment_meta( $object_id, $meta_value )
$meta_value = array();
}

remove_filter( 'get_post_metadata', '_give_20_bc_get_new_payment_meta', 10 );

// Date payment meta.
if ( ! empty( $meta_value['date'] ) ) {
give_update_meta( $object_id, '_give_payment_date', $meta_value['date'] );
Expand Down Expand Up @@ -73,6 +75,8 @@ function _give_20_bc_split_and_save_give_payment_meta( $object_id, $meta_value )
}
}
}// End if().

add_filter( 'get_post_metadata', '_give_20_bc_get_new_payment_meta', 10, 5 );
}

/**
Expand Down

0 comments on commit 5538daa

Please sign in to comment.