Repository navigation
Commit fdd3129
committed
Avoid re-running full plugin init during activation
install() called get_plugin_instance()->init() unconditionally, which
re-ran the bootstrap out of sequence during plugin activation and could
destabilise plugin load order for the request (e.g. triggering ACF to
initialise too early). Only run init() when the plugin version has not
already been populated; the DB routines only need the version.1 parent 4090dd8 commit fdd3129
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
339 | 348 | | |
340 | 349 | | |
341 | 350 | | |
| |||
0 commit comments