Przeglądaj źródła

Spearhead: remove excess JS from the frontend (#7849)

Sérgio Gomes 1 rok temu
rodzic
commit
1278c6d895
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      spearhead/functions.php

+ 1 - 1
spearhead/functions.php

@@ -162,7 +162,7 @@ function spearhead_block_extends() {
 		array( 'wp-blocks', 'wp-edit-post' ) // wp-edit-post is added to avoid a race condition when trying to unregister a style variation
 	);
 }
-add_action( 'enqueue_block_assets', 'spearhead_block_extends' );
+add_action( 'enqueue_block_editor_assets', 'spearhead_block_extends' );
 
 /**
  * Add Google webfonts