Commit 4d2665f
committed
fix: resolve PHPCS security warnings
- Replace $_SERVER['HTTP_HOST'] with home_url() in Apple Pay verification
- Simplify domain extraction logic using WordPress best practices
- Fix multiline phpcs:ignore statement in get_save_payment_card_checkbox()
- Add explanation comment for nonce verification ignore
- Add WPCS: CSRF ok marker for $_POST access (called after WC nonce verification)
All PHPCS errors resolved. Code remains secure - methods accessing $_POST
are only invoked after WooCommerce nonce verification in process_payment().1 parent 24c8082 commit 4d2665f
File tree
2 files changed
+5
-13
lines changed- src
- Gateways/Abstracts
- Services
2 files changed
+5
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
| 288 | + | |
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
| |||
0 commit comments