فهرست منبع

Blockbase: Remove the fallback for the navigation block (#5419)

Ben Dwyer 3 سال پیش
والد
کامیت
45aecc763d
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      blockbase/functions.php

+ 8 - 0
blockbase/functions.php

@@ -174,6 +174,14 @@ add_action(
 	}
 );
 
+/**
+ * Disable the fallback for the core/navigation block.
+ */
+function blockbase_core_navigation_render_fallback() {
+	return null;
+}
+add_filter( 'block_core_navigation_render_fallback', 'blockbase_core_navigation_render_fallback' );
+
 /**
  * Block Styles.
  */