Browse Source

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

Ben Dwyer 4 years ago
parent
commit
16f08d0a34
1 changed files with 3 additions and 1 deletions
  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.
  * Block Patterns.
  */
  */
-require get_template_directory() . '/inc/block-patterns.php';
+if ( ! is_child_theme() ) {
+	require get_template_directory() . '/inc/block-patterns.php';
+}