Commit 524108c
authored
fix: add type and data-ajax-nonce to button kses allowlist (#879)
The setup wizard requirements table HTML passes through wp_kses()
twice (field-note.php and default.php templates). The button element's
kses allowlist only permitted disabled, name, and value — stripping
type="button" and data-ajax-nonce from the Network Activate button.
Without type="button", the click submits the parent form instead of
triggering the AJAX handler. Without data-ajax-nonce, the JS reads
undefined and the server rejects the request with bad-nonce.
PR #875 correctly moved the JS to an external file and changed the
nonce field to _ajax_nonce, but the button attributes were still
stripped before reaching the browser.1 parent 44c629d commit 524108c
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| |||
0 commit comments