Skip to content
Snippets Groups Projects
Commit b3487410 authored by Christian Wach's avatar Christian Wach :soccer:
Browse files

Remove network activation method

parent 109a1946
No related branches found
No related tags found
No related merge requests found
......@@ -133,45 +133,6 @@ class Conditional_Form_Actions_For_ACFE {
}
/**
* Check if this plugin is network activated.
*
* @since 0.1
*
* @return bool $is_network_active True if network activated, false otherwise.
*/
public function is_network_activated() {
// Only need to test once.
static $is_network_active;
// Have we done this already?
if ( isset( $is_network_active ) ) {
return $is_network_active;
}
// If not multisite, it cannot be.
if ( ! is_multisite() ) {
$is_network_active = false;
return $is_network_active;
}
// Make sure plugin file is included when outside admin.
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
require_once ABSPATH . '/wp-admin/includes/plugin.php';
}
// Get path from 'plugins' directory to this plugin.
$this_plugin = plugin_basename( CFAFA_FILE );
// Test if network active.
$is_network_active = is_plugin_active_for_network( $this_plugin );
// --<
return $is_network_active;
}
} // Class ends.
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment