We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3813f7 commit 3d306deCopy full SHA for 3d306de
clarkson-core.php
@@ -90,9 +90,7 @@ protected function __construct() {
90
require_once $autoload_file;
91
}
92
93
- if ( is_callable( 'add_action' ) ) {
94
- add_action( 'init', array( $this, 'init' ) );
95
- }
+ add_action( 'init', array( $this, 'init' ) );
96
97
if ( ! class_exists( 'Clarkson_Core_Autoloader' ) ) {
98
return;
@@ -118,6 +116,7 @@ protected function __construct() {
118
116
$deprecated = Clarkson_Core_Deprecated::get_instance();
119
117
$deprecated->auto_load_theme();
120
+
121
122
123
/**
@@ -134,4 +133,4 @@ public function __wakeup() {
134
133
135
136
137
-Clarkson_Core::get_instance();
+add_action( 'plugins_loaded', array( 'Clarkson_Core', 'get_instance' ) );
0 commit comments