WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/01/2017 04:33:47 PM (22 months 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/sponsor-payment-stripe.php

    r5842 r6067  
    1111const STEP_PAYMENT_DETAILS = 2;
    1212const STEP_PAYMENT_SUCCESS = 3;
    13 
    1413const CSS_VERSION = 1;
    1514
     
    110109
    111110            $currency = $_POST['currency'];
    112             if ( ! array_key_exists( $currency, $data['currencies'] ) or strpos( $currency, 'null' ) === 0 ) {
     111            if ( ! array_key_exists( $currency, $data['currencies'] ) || false !== strpos( $currency, 'null' ) ) {
    113112                $data['errors'][] = 'Invalid currency.';
    114113                return;
Note: See TracChangeset for help on using the changeset viewer.