Skip to content

Commit 26e9255

Browse files
committed
revert changes
1 parent 865d40d commit 26e9255

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

inc/compatibility/web_stories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private function should_load() {
3737
* Load hooks.
3838
*/
3939
private function load_hooks() {
40-
add_action( 'init', array( $this, 'setup' ) );
40+
add_action( 'after_setup_theme', array( $this, 'setup' ) );
4141
add_action( 'wp_body_open', array( $this, 'embed' ) );
4242
}
4343

inc/core/core_loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function () {
174174
);
175175
$front_end = new Front_End();
176176
add_action( 'wp_enqueue_scripts', array( $front_end, 'enqueue_scripts' ) );
177-
add_action( 'init', array( $front_end, 'setup_theme' ) );
177+
add_action( 'after_setup_theme', array( $front_end, 'setup_theme' ) );
178178
add_action( 'widgets_init', array( $front_end, 'register_sidebars' ) );
179179
add_filter( 'load_script_translation_file', array( $front_end, 'fix_script_translation_files' ), 10, 3 );
180180
}

start.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,7 @@ function neve_run() {
5353
}
5454

5555
$autoloader->register();
56-
}
57-
58-
neve_run();
5956

60-
/**
61-
* Load core modules.
62-
*/
63-
function neve_core_loader() {
6457
if ( class_exists( '\\Neve\\Core\\Core_Loader' ) ) {
6558
new \Neve\Core\Core_Loader();
6659
}
@@ -78,4 +71,5 @@ function neve_core_loader() {
7871
\Neve_Pro\Core\Loader::instance();
7972
}
8073
}
81-
add_action( 'after_setup_theme', 'neve_core_loader' );
74+
75+
neve_run();

0 commit comments

Comments
 (0)