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 8325a5c commit e3813f7Copy full SHA for e3813f7
clarkson-core.php
@@ -90,7 +90,9 @@ protected function __construct() {
90
require_once $autoload_file;
91
}
92
93
- add_action( 'init', array( $this, 'init' ) );
+ if ( is_callable( 'add_action' ) ) {
94
+ add_action( 'init', array( $this, 'init' ) );
95
+ }
96
97
if ( ! class_exists( 'Clarkson_Core_Autoloader' ) ) {
98
return;
@@ -116,7 +118,6 @@ protected function __construct() {
116
118
$deprecated = Clarkson_Core_Deprecated::get_instance();
117
119
$deprecated->auto_load_theme();
120
-
121
122
123
/**
@@ -133,4 +134,4 @@ public function __wakeup() {
133
134
135
136
-add_action( 'plugins_loaded', array( 'Clarkson_Core', 'get_instance' ) );
137
+Clarkson_Core::get_instance();
0 commit comments