Skip to content

Commit

Permalink
fix: remove other after_setup_theme hook
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Nov 21, 2024
1 parent c45b26f commit 3d5670c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/compatibility/web_stories.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private function should_load() {
* Load hooks.
*/
private function load_hooks() {
add_action( 'after_setup_theme', array( $this, 'setup' ) );
add_action( 'init', array( $this, 'setup' ) );
add_action( 'wp_body_open', array( $this, 'embed' ) );
}

Expand Down
2 changes: 1 addition & 1 deletion inc/core/core_loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function () {
);
$front_end = new Front_End();
add_action( 'wp_enqueue_scripts', array( $front_end, 'enqueue_scripts' ) );
add_action( 'after_setup_theme', array( $front_end, 'setup_theme' ) );
add_action( 'init', array( $front_end, 'setup_theme' ) );
add_action( 'widgets_init', array( $front_end, 'register_sidebars' ) );
add_filter( 'load_script_translation_file', array( $front_end, 'fix_script_translation_files' ), 10, 3 );
}
Expand Down

0 comments on commit 3d5670c

Please sign in to comment.