Skip to content

Commit 3d306de

Browse files
committed
Revert "Fix clarkson core loader"
This reverts commit e3813f7.
1 parent e3813f7 commit 3d306de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clarkson-core.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ protected function __construct() {
9090
require_once $autoload_file;
9191
}
9292

93-
if ( is_callable( 'add_action' ) ) {
94-
add_action( 'init', array( $this, 'init' ) );
95-
}
93+
add_action( 'init', array( $this, 'init' ) );
9694

9795
if ( ! class_exists( 'Clarkson_Core_Autoloader' ) ) {
9896
return;
@@ -118,6 +116,7 @@ protected function __construct() {
118116
$deprecated = Clarkson_Core_Deprecated::get_instance();
119117
$deprecated->auto_load_theme();
120118
}
119+
121120
}
122121

123122
/**
@@ -134,4 +133,4 @@ public function __wakeup() {
134133

135134
}
136135

137-
Clarkson_Core::get_instance();
136+
add_action( 'plugins_loaded', array( 'Clarkson_Core', 'get_instance' ) );

0 commit comments

Comments
 (0)