Skip to content

Commit e94ce66

Browse files
authored
Fix Call to undefined function
1 parent 9f32f0d commit e94ce66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/template-canvas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Get the template HTML.
1010
* This needs to run before <head> so that blocks can add scripts and styles in wp_head().
1111
*/
12-
$template_html = get_the_block_template_html();
12+
$template_html = function_exists( 'get_the_block_template_html' ) ? get_the_block_template_html() : '';
1313
?><!DOCTYPE html>
1414
<html <?php language_attributes(); ?>>
1515
<head>

0 commit comments

Comments
 (0)