[wp-trac] [WordPress Trac] #14915: Fix activation hook inconsistency

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 26 06:01:52 UTC 2010


#14915: Fix activation hook inconsistency
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.1        
Component:  Plugins       |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by joelhardi):

 > Activate all plugins, run HTTP request, and it it fails, deactivate by
 one in reverse alphabetical order until the site comes back up (or
 deactivate all of them).

 Agree. Also still works if there are any cross-dependency issues with
 plugins.

 Only problem with 1-by-1 deactivation is that it might take a while if
 they have a lot of plugins installed. Could branch and only try this if
 they have fewer than a certain number of plugins, otherwise leave
 everything deactivated. Or, could improve it by using a binary tree
 algorithm. i.e. 1st test for errors with all plugins active; if fails,
 split plugin list in half and try on each half, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14915#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list