[wp-trac] [WordPress Trac] #24205: is_plugin_active() should return true for must-use/dropin plugins

WordPress Trac noreply at wordpress.org
Thu Dec 31 12:55:32 UTC 2015


#24205: is_plugin_active() should return true for must-use/dropin plugins
--------------------------------------+-----------------------------
 Reporter:  jrf                       |       Owner:
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  Future Release
Component:  Plugins                   |     Version:  3.5.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by swissspidy):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests
 * milestone:  Awaiting Review => Future Release


Comment:

 > I feel as if, `is_plugin_active()` is designed more to be a site option,
 where as a `mu-plugin` is designed to be more of a server/system-level
 configuration, as such, I wouldn't expect `is_plugin_active()` to be true
 for those cases.

 I agree with the first part, but not necessarily with the conclusion.

 [attachment:24205.diff] is an updated patch without an additional
 `$check_all` parameter or bootstrap file check. It simply checks whether a
 plugin is active as a must-use plugin or drop-in as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24205#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list