mu-plugins do not call activate/deactivate()
|Reported by:||Denis-de-Bernardy||Owned by:|
When you add a plugin into the mu-plugins folder, it will not run activate() and deactivate() as it should the first time it is used.
We should at least try to run activate(), so as to set up new database tables and other once-only actions.
One potential workflow could be:
- We scan every php file as we currently do, but keep a trace of what was included
- After including each plugin, we check that it exists in a mu_plugins array
- If not, we activate on the fly
- We strip the mu_plugins array of plugins that were not included and save if relevant