Преглед изворни кода

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