mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Plugins: Clarify that mu-plugins can't be "active" in docs.
Plugins installed in the plugins/ folder can be activated by users. This puts the plugin in an "active" state. Plugins in the mu-folder/ are "must-use" plugins that are always loaded. They can't be activated, and thereby can't be "active." Because of this, using the `is_plugin_active()` or `is_plugin_active_for_network()` returns false when checking for these plugins. This clarifies that behavior in the functions' docs. Built from https://develop.svn.wordpress.org/trunk@36397 git-svn-id: http://core.svn.wordpress.org/trunk@36364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
af25083b6f
commit
d01e8db4ad
@ -427,7 +427,12 @@ function _get_dropins() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the plugin is active by checking the active_plugins list.
|
||||
* Check whether a plugin is active.
|
||||
*
|
||||
* Only plugins installed in the plugins/ folder can be active.
|
||||
*
|
||||
* Plugins in the mu-plugins/ folder can't be "activated," so this function will
|
||||
* return false for those plugins.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
@ -456,6 +461,11 @@ function is_plugin_inactive( $plugin ) {
|
||||
/**
|
||||
* Check whether the plugin is active for the entire network.
|
||||
*
|
||||
* Only plugins installed in the plugins/ folder can be active.
|
||||
*
|
||||
* Plugins in the mu-plugins/ folder can't be "activated," so this function will
|
||||
* return false for those plugins.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $plugin Base plugin path from plugins directory.
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36396';
|
||||
$wp_version = '4.5-alpha-36397';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user