[wp-trac] [WordPress Trac] #9562: mu-plugins do not call activate/deactivate()

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 17 10:00:28 GMT 2009


#9562: mu-plugins do not call activate/deactivate()
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:              
     Type:  defect (bug)       |      Status:  new         
 Priority:  normal             |   Milestone:  2.8         
Component:  Plugins            |     Version:  2.8         
 Severity:  normal             |    Keywords:  dev-feedback
-------------------------------+--------------------------------------------
 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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9562>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list