[wp-trac] [WordPress Trac] #6309: deactivate_plugins() deactivates
first plugin if specified plugin is not active.
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 20 12:01:10 GMT 2008
#6309: deactivate_plugins() deactivates first plugin if specified plugin is not
active.
----------------------------+-----------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.5
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
array_search() may return boolean false if the plugin is not in the
current array, This causes PHP to interprate it as a 0.
The result is that WordPress deactivates the first plugin in the list if a
non-active plugin is passed to deactivate_plugins().
--
Ticket URL: <http://trac.wordpress.org/ticket/6309>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list