Ver código fonte

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

Ben Dwyer 3 anos atrás
pai
commit
45aecc763d
1 arquivos alterados com 8 adições e 0 exclusões
  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.
  */