Update plugins/woocommerce/includes/class-wc-template-loader.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
This commit is contained in:
parent
3047603e2b
commit
f8eebbecbd
|
@ -107,7 +107,7 @@ class WC_Template_Loader {
|
|||
return false;
|
||||
}
|
||||
|
||||
$has_template = (bool) is_readable( get_stylesheet_directory() . '/block-templates/' . $template_name . '.html' );
|
||||
$has_template = is_readable( get_stylesheet_directory() . '/block-templates/' . $template_name . '.html' );
|
||||
|
||||
/**
|
||||
* Filters the value of the result of the block template check.
|
||||
|
@ -117,7 +117,7 @@ class WC_Template_Loader {
|
|||
* @param boolean $has_template value to be filtered.
|
||||
* @param string $template_name The name of the template.
|
||||
*/
|
||||
return apply_filters( 'woocommerce_has_block_template', $has_template, $template_name );
|
||||
return (bool) apply_filters( 'woocommerce_has_block_template', $has_template, $template_name );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue