Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/1925 #1927

Merged
merged 2 commits into from
Jul 31, 2017
Merged

Issues/1925 #1927

merged 2 commits into from
Jul 31, 2017

Conversation

ravinderk
Copy link
Collaborator

Description

This PR will resolve #1925

How Has This Been Tested?

Review donor table and donor detail page

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@@ -371,7 +371,7 @@ function give_format_decimal( $amount, $dp = false, $sanitize = true ) {
*/
function give_currency_filter( $price = '', $currency = '', $decode_currency = false ) {

if ( empty( $currency ) ) {
if ( empty( $currency ) || ! array_key_exists( (string) $currency, give_get_currencies() ) ) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DevinWalker Review this condition improvement

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ravinderk ravinderk merged commit 714ce37 into impress-org:release/1.8.12 Jul 31, 2017
@ravinderk
Copy link
Collaborator Author

@DevinWalker Merging this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants