[wp-trac] Re: [WordPress Trac] #2387: Caching makes activate/deactivate plugin hooks unusable

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 30 23:49:38 GMT 2006


#2387: Caching makes activate/deactivate plugin hooks unusable
----------------------------+-----------------------------------------------
       Id:  2387            |      Status:  assigned                
Component:  Administration  |    Modified:  Sun Apr 30 23:49:38 2006
 Severity:  normal          |   Milestone:  2.0.3                   
 Priority:  high            |     Version:  2.0                     
    Owner:  markjaquith     |    Reporter:  westi                   
----------------------------+-----------------------------------------------
Comment (by westi):

 I was using the activate and deactivate hooks to add/remove a cap on the
 administrator like so:

 {{{
         function activate()
         {
                 global $wp_roles;
                 $wp_roles->add_cap('administrator','manage_cache');
         }

         function deactivate()
         {
                 global $wp_roles;
                 $wp_roles->remove_cap('administrator','manage_cache');
         }
 }}}

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


More information about the wp-trac mailing list