We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class_exists
1 parent eb3c355 commit a32cc9bCopy full SHA for a32cc9b
stubs/activate-ymir-plugin.php
@@ -1,7 +1,9 @@
1
<?php
2
3
function ymir_activate_plugin() {
4
- if (class_exists('\\Ymir\\Plugin\\Plugin') || (defined('WP_INSTALLING') && WP_INSTALLING)) {
+ global $ymir;
5
+
6
+ if (($ymir instanceof \Ymir\Plugin\Plugin && $ymir->isLoaded()) || (defined('WP_INSTALLING') && WP_INSTALLING)) {
7
return;
8
} elseif (!function_exists('get_plugins')) {
9
require_once ABSPATH.'wp-admin/includes/plugin.php';
0 commit comments