Skip to content

Commit 3223127

Browse files
fix: shop page sidebar issue with latest release
1 parent 865d40d commit 3223127

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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+
$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
@@ -173,8 +173,8 @@ function () {
173173
}
174174
);
175175
$front_end = new Front_End();
176+
$front_end->setup_theme();
176177
add_action( 'wp_enqueue_scripts', array( $front_end, 'enqueue_scripts' ) );
177-
add_action( 'init', 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
}

0 commit comments

Comments
 (0)