WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/01/2017 04:33:47 PM (3 years ago)
Author:
iandunn
Message:

WordCamp Payments: Add missing ISO 4217 currencies.

This also cleans up and normalizes the dropdown rendering across payments modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php

    r4967 r6067  
    865865            case 'payment_amount':
    866866                $currency = get_post_meta( $post_id, '_camppayments_currency', true );
    867                 if ( false === strpos( $currency, 'null' ) ) {
     867                if ( $currency && false === strpos( $currency, 'null' ) ) {
    868868                    echo esc_html( $currency ) . ' ';
    869869                }
     
    996996            }
    997997
    998             if ( 'null-select-one' === $currency ) {
     998            if ( false !== strpos( $currency, 'null' ) ) {
    999999                $currency = '';
    10001000            }
Note: See TracChangeset for help on using the changeset viewer.