We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe6f426 commit 68be07bCopy full SHA for 68be07b
koko-analytics.php
@@ -36,19 +36,19 @@
36
37
use WP_CLI;
38
39
+// don't run if PHP version is lower than 7.4
40
+// prevent direct file access
41
+if (PHP_VERSION_ID < 70400 || ! \defined('ABSPATH')) {
42
+ return;
43
+}
44
+
45
define('KOKO_ANALYTICS_VERSION', '2.2.1');
46
define('KOKO_ANALYTICS_PLUGIN_FILE', __FILE__);
47
define('KOKO_ANALYTICS_PLUGIN_DIR', __DIR__);
48
49
// Load the Koko Analytics autoloader
50
require __DIR__ . '/autoload.php';
51
-// don't run if PHP version is lower than 7.4
-// prevent direct file access
-if (PHP_VERSION_ID < 70400 || ! \defined('ABSPATH')) {
- return;
-}
-
52
// Main hooks (global)
53
require __DIR__ . '/src/Controller.php';
54
(new Controller())->hook();
0 commit comments