Skip to content

Commit

Permalink
Add empty alt in credit card too
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Sep 17, 2024
1 parent 6dfb472 commit 454c995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PaymentMethods/PaymentMethodsIconUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public function getCreditcardIcon()
if ($this->canShowCustomLogo($gatewaySettings)) {
$url = $gatewaySettings["iconFileUrl"];
return '<img src="' . esc_url($url)
. '" class="mollie-gateway-icon" />';
. '" class="mollie-gateway-icon" alt=""/>';
}
$svgUrl = $this->pluginUrl . sprintf('public/images/%ss.svg', PaymentMethod::CREDITCARD);
return
'<img src="' . esc_url($svgUrl)
. '" class="mollie-gateway-icon" />';
. '" class="mollie-gateway-icon" alt=""/>';
}

protected function canShowCustomLogo($gatewaySettings): bool
Expand Down

0 comments on commit 454c995

Please sign in to comment.