[wp-trac] Re: [WordPress Trac] #4048: some hooks for the plugin management system

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 21 18:11:25 GMT 2007

#4048: some hooks for the plugin management system
 Reporter:  m0n5t3r                 |        Owner:  anonymous  
     Type:  enhancement             |       Status:  new        
 Priority:  normal                  |    Milestone:  2.3 (trunk)
Component:  Administration          |      Version:             
 Severity:  normal                  |   Resolution:             
 Keywords:  has-patch, 2nd-opinion  |  
Comment (by santosj):

 before_activate_$plugin.action.diff, have you tested this to make sure it

 It appears as if you are depending on register globals or globals for the

 My guess is that it should be a filter

 $can_activate = apply_filters('before_activate'.$plugin, true);

 This would be most useful for checking dependencies before the fact. Would
 have been quite useful in some previous projects.

Ticket URL: <http://trac.wordpress.org/ticket/4048#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list