* Blockbase: Change references to gutenberg_block_template_part, to block_template_part * use an if statement to determine which function to call
@@ -1,6 +1,10 @@
<footer class="wp-block-template-part site-footer-container">
<?php
- echo gutenberg_block_template_part( 'footer' );
+ if ( function_exists( 'block_template_part' ) ) {
+ echo block_template_part( 'footer' );
+ } else {
+ echo gutenberg_block_template_part( 'footer' );
+ }
?>
</div>
</footer>
@@ -13,6 +13,10 @@
<div class="wp-site-blocks">
<header class="wp-block-template-part">
- echo gutenberg_block_template_part( 'header' );
+ echo block_template_part( 'header' );
+ echo gutenberg_block_template_part( 'header' );
</header>
@@ -15,6 +15,10 @@
get_header();
// the query
-echo gutenberg_block_template_part( 'index' );
+if ( function_exists( 'block_template_part' ) ) {
+ echo block_template_part( 'index' );
+} else {
+ echo gutenberg_block_template_part( 'index' );
+}
get_footer();