Skip to content

Commit b056dc2

Browse files
committed
fix: explicitly return '' in get_the_block_template_html()
1 parent 3eef145 commit b056dc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/block-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function get_the_block_template_html() {
253253
if ( is_user_logged_in() ) {
254254
return '<h1>' . esc_html__( 'No matching template found' ) . '</h1>';
255255
}
256-
return;
256+
return '';
257257
}
258258

259259
$content = $wp_embed->run_shortcode( $_wp_current_template_content );

0 commit comments

Comments
 (0)