소스 검색

BCB: Only show patterns on the parent theme (#3775)

Ben Dwyer 4 년 전
부모
커밋
16f08d0a34
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      blank-canvas-blocks/functions.php

+ 3 - 1
blank-canvas-blocks/functions.php

@@ -85,4 +85,6 @@ function blank_canvas_blocks_fonts_url() {
 /**
  * Block Patterns.
  */
-require get_template_directory() . '/inc/block-patterns.php';
+if ( ! is_child_theme() ) {
+	require get_template_directory() . '/inc/block-patterns.php';
+}