[wp-trac] Re: [WordPress Trac] #6332: deactivate_plugins() bug (wp-admin/include/plugins.php)

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 23 08:47:27 GMT 2008


#6332: deactivate_plugins() bug (wp-admin/include/plugins.php)
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  defect             |       Status:  reopened 
 Priority:  low                |    Milestone:  2.5      
Component:  Administration     |      Version:  2.5      
 Severity:  minor              |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by DD32):

 > attachment 6332.diff added.

 Use is_plugin_active() instead. Also removed double-searching from the
 code from [7456]

 {{{
 var_dump(get_option('active_plugins'));

 deactivate_plugins('false.php');

 var_dump(get_option('active_plugins'));

 array
   0 => string 'add-from-server/add-from-server.php' (length=35)
   1 => string 'erm.php' (length=7)
   2 => string 'php-run/php-run.php' (length=19)
   3 => string 'remove-max-width/remove-max-width.php' (length=37)
 array
   0 => string 'add-from-server/add-from-server.php' (length=35)
   1 => string 'erm.php' (length=7)
   2 => string 'php-run/php-run.php' (length=19)
   3 => string 'remove-max-width/remove-max-width.php' (length=37)
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6332#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list