소스 검색

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

Sérgio Gomes 1 년 전
부모
커밋
1278c6d895
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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