Skip to content

Commit

Permalink
Remove Gutenberg Modules from wp_footer
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jan 9, 2024
1 parent bfad34c commit 5c5798c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,11 @@ static function() {

if ( class_exists( 'Gutenberg_Modules' ) ) {
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_import_map' ] );
remove_action( 'wp_footer', [ 'Gutenberg_Modules', 'print_import_map' ] );
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_enqueued_modules' ] );
remove_action( 'wp_footer', [ 'Gutenberg_Modules', 'print_enqueued_modules' ] );
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_module_preloads' ] );
remove_action( 'wp_footer', [ 'Gutenberg_Modules', 'print_module_preloads' ] );
remove_action( 'wp_footer', [ 'Gutenberg_Modules', 'print_import_map_polyfill' ], 11 );
}
}
Expand Down

0 comments on commit 5c5798c

Please sign in to comment.