Skip to content

Commit

Permalink
Button Image taking too much time in loading, ref #818
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Aug 29, 2017
1 parent 6aeedbf commit 7602d1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/wc-gateway-paypal-express-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ public static function get_button_locale_code() {
}
}
$locale = get_locale();
if (get_locale() != '') {
$locale = substr(get_locale(), 0, 5);
}
if (!in_array($locale, $_supportedLocale)) {
$locale = 'en_US';
}
Expand Down

0 comments on commit 7602d1a

Please sign in to comment.