[wp-trac] [WordPress Trac] #24205: is_plugin_active() returns false for must-use/dropin plugins
WordPress Trac
noreply at wordpress.org
Sat Apr 27 19:28:26 UTC 2013
#24205: is_plugin_active() returns false for must-use/dropin plugins
--------------------------+-----------------------------
Reporter: jrf | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.5.1
Severity: normal | Keywords:
--------------------------+-----------------------------
As must-use plugins/dropins are automatically active, the expected
behaviour for ''is_plugin_active()'' would be to return ''true''. In
reality it returns ''false''.
Easy enough to reproduce and test - just add a plugin to the must-use
directory and test with:
{{{
if( is_plugin_active( 'plugin-name.php' ) ) {
echo 'plugin is active';
}
else {
echo 'plugin does not seem to be active';
}
}}}
Hope this helps
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24205>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list