Skip to content

Commit

Permalink
Express Checkout - Broken Image URLs, ref #623
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jan 19, 2017
1 parent 2a85deb commit 3ac44ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-express-angelleye.php
Expand Up @@ -2436,7 +2436,7 @@ static function get_button_locale_code() {
}

public static function angelleye_get_paypalimage() {
if( self::get_button_locale_code() == '') {
if( self::get_button_locale_code() == 'en_US') {
return "https://www.paypalobjects.com/webstatic/".self::get_button_locale_code()."/i/buttons/checkout-logo-medium.png";
} else {
return esc_url(add_query_arg('cmd', '_dynamic-image', add_query_arg('locale', self::get_button_locale_code(), 'https://fpdbs.paypal.com/dynamicimageweb')));
Expand Down

0 comments on commit 3ac44ca

Please sign in to comment.