Plugin Directory

Changeset 1470867


Ignore:
Timestamp:
08/09/2016 02:17:29 PM (10 years ago)
Author:
akeda
Message:

Preparing for 1.1.1 release

Location:
woocommerce-gateway-paypal-express-checkout/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/abstracts/abstract-wc-gateway-ppec.php

    r1470458 r1470867  
    229229        $creds    = $settings->get_active_api_credentials();
    230230
    231         if ( ! empty( $creds->get_username() ) ) {
    232 
    233             if ( empty( $creds->get_password() ) ) {
     231        $username = $creds->get_username();
     232        $password = $creds->get_password();
     233
     234        if ( ! empty( $username ) ) {
     235
     236            if ( empty( $password ) ) {
    234237                WC_Admin_Settings::add_error( sprintf( __( 'Error: You must enter a %s API password.' ), __( $settings->get_environment(), 'woocommerce-gateway-paypal-express-checkout' ) ) );
    235238                return false;
    236239            }
    237240
    238             if ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Signature' ) && ! empty( $creds->get_signature() ) ) {
     241            if ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Signature' ) && $creds->get_signature() ) {
    239242
    240243                try {
     
    251254                }
    252255
    253             } elseif ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Certificate' ) && ! empty( $creds->get_certificate() ) ) {
     256            } elseif ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Certificate' ) && $creds->get_certificate() ) {
    254257
    255258                $cert = @openssl_x509_read( $creds->get_certificate() );
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/settings/settings-ppec.php

    r1470458 r1470867  
    55}
    66
    7 $needs_creds         = empty( $this->get_option( 'api_username' ) );
    8 $needs_sandbox_creds = empty( $this->get_option( 'sandbox_api_username' ) );
     7$api_username         = $this->get_option( 'api_username' );
     8$sandbox_api_username = $this->get_option( 'sandbox_api_username' );
     9
     10$needs_creds         = empty( $api_username );
     11$needs_sandbox_creds = empty( $sandbox_api_username );
    912$enable_ips          = wc_gateway_ppec()->ips->is_supported();
    1013
  • woocommerce-gateway-paypal-express-checkout/trunk/readme.txt

    r1470458 r1470867  
    44Requires at least: 4.4
    55Tested up to: 4.4
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8686== Changelog ==
    8787
     88= 1.1.1 =
     89* Fixed fatal error prior to PHP 5.5 caused by passing empty() a non-variables.
     90
    8891= 1.1.0 =
    8992* Improved flow after express checkout by removing billing and shipping fields and simply allowing shipping method selection.
  • woocommerce-gateway-paypal-express-checkout/trunk/woocommerce-gateway-paypal-express-checkout.php

    r1470458 r1470867  
    44 * Plugin URI: https://www.woothemes.com/products/woocommerce-gateway-paypal-express-checkout/
    55 * Description: A payment gateway for PayPal Express Checkout (https://www.paypal.com/us/webapps/mpp/express-checkout).
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: Automattic
    88 * Author URI: https://woocommerce.com
     
    3737        require_once( 'includes/class-wc-gateway-ppec-plugin.php' );
    3838
    39         $plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.1.0' );
     39        $plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.1.1' );
    4040    }
    4141
Note: See TracChangeset for help on using the changeset viewer.