Commit 764abf4
authored
fix: show success banner immediately on multisite wizard complete page (#880)
After all 4 install steps succeed, the JS auto-submits the form which
redirects to the complete step. Previously, section_complete() checked
is_multisite() to decide whether to show the success banner or manual
instructions. But is_multisite() returns false on the first load after
MULTISITE=true is written to wp-config.php, because the current PHP
process loaded before the constant existed (OPcache or same-request
timing). This caused users to see scary 'unable to configure' manual
instructions despite a fully successful automated install.
Fix: add a handle_install_complete() handler for the install step that
redirects to the complete step with result=success as a query parameter.
section_complete() already checks for this parameter, so the green
success banner now appears immediately without requiring a page refresh.1 parent 524108c commit 764abf4
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
310 | 332 | | |
311 | 333 | | |
312 | 334 | | |
| |||
0 commit comments