Making WordPress.org

Changeset 7469


Ignore:
Timestamp:
07/16/2018 09:31:14 PM (8 years ago)
Author:
vedjain
Message:

Updated UI for payment checkout option to make Stripe more prominent as compared to other gateways.

More info: https://make.wordpress.org/community/2018/07/16/stripe-will-become-preferred-payment-gateway-for-wordcamps/
Also, currently this feature is disabled on all WordCamp site, and will be enabled one by one, via the feature flag camptix_payment_options. All code for this feature is in form of an addon defined by 1class-payment-options.php`.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php

    r7399 r7469  
    458458                $current_city = wcorg_get_url_part( site_url(), 'city' );
    459459
    460                 if ( array_key_exists( $current_city, $alternate_orders ) ) {
    461                         // todo PHP Warning:  array_key_exists(): The first argument should be either a string or an integer
     460                if ( $current_city !== false && array_key_exists( $current_city, $alternate_orders ) ) {
    462461                        $order = $alternate_orders[ $current_city ];
    463462                }
     
    567566        // Privacy field
    568567        require_once( __DIR__ . '/addons/privacy.php' );
     568
     569        // Payment options
     570        if ( in_array( filter_input( INPUT_GET, 'tix_action' ), array( 'attendee_info', 'checkout' ), true )
     571             && ! wcorg_skip_feature( 'camptix_payment_options' )
     572        ) {
     573                require_once( __DIR__ . '/addons/class-payment-options.php' );
     574        }
     575
    569576}
    570577
Note: See TracChangeset for help on using the changeset viewer.