Skip to content

Commit

Permalink
Remove Gutenberg_Modules logic from AMP pages
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Dec 18, 2023
1 parent 1a2182f commit 04d1298
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,10 @@ static function() {
// Prevent Interactivity API from being enqueued in the form of modules.
// TODO: This will need to be updated once Interactivity API is merged from Gutenberg into core.
remove_action( 'wp_enqueue_scripts', 'gutenberg_register_interactivity_module' );
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_import_map' ] );
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_enqueued_modules' ] );
remove_action( 'wp_head', [ 'Gutenberg_Modules', 'print_module_preloads' ] );
remove_action( 'wp_footer', [ 'Gutenberg_Modules', 'print_import_map_polyfill' ], 11 );
}

/**
Expand Down

0 comments on commit 04d1298

Please sign in to comment.