Skip to content

fix: Add mollie-gateway-icon class to the icon html

1f7a62d
Select commit
Loading
Failed to load commit list.
Merged

fix: Add mollie-gateway-icon class to the icon html #310

fix: Add mollie-gateway-icon class to the icon html
1f7a62d
Select commit
Loading
Failed to load commit list.
Cursor / Cursor BugBot completed Jul 9, 2025 in 1m 32s

BugBot Review

BugBot completed review and found 1 potential issue

Request ID: serverGenReqId_0a5ebcab-551c-4179-9703-df0e52afa1e6

Details

Bug: Incorrect CSS Class for Payment Gateway Icon

The get_icon() method in the WC_Twoinc class incorrectly uses the CSS class mollie-gateway-icon for the Two/Twoinc payment gateway icon. This class name is a remnant of copied code from a Mollie plugin and should be updated to a Two/Twoinc specific class (e.g., twoinc-gateway-icon).

class/WC_Twoinc.php#L2294-L2295

{
$icon_html = '<img src="' . esc_url($this->icon) . '" alt="' . esc_attr($this->title) . '" class="mollie-gateway-icon" />';

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎