Commit a044e35
Restore null guard in get_config_for_payment_method
wc_payments_get_payment_gateway_by_id() can return false when a payment
method ID is not in the gateway map. Without the guard, accessing ->id
on false produces a PHP fatal error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b652580 commit a044e35
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
384 | 387 | | |
385 | 388 | | |
386 | 389 | | |
| |||
0 commit comments