ソースを参照

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';
+}