Skip to content

Commit bf8d81e

Browse files
committed
Rename _strip_php_suffix to _strip_template_file_suffix
1 parent cba7648 commit bf8d81e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/block-template.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function resolve_block_template( $template_type, $template_hierarchy ) {
104104
}
105105

106106
$slugs = array_map(
107-
'_strip_php_suffix',
107+
'_strip_template_file_suffix',
108108
$template_hierarchy
109109
);
110110

@@ -189,15 +189,15 @@ function _block_template_viewport_meta_tag() {
189189
}
190190

191191
/**
192-
* Strips .php suffix from template file names.
192+
* Strips .php or .html suffix from template file names.
193193
*
194194
* @access private
195195
* @since 5.8.0
196196
*
197197
* @param string $template_file Template file name.
198198
* @return string Template file name without extension.
199199
*/
200-
function _strip_php_suffix( $template_file ) {
200+
function _strip_template_file_suffix( $template_file ) {
201201
return preg_replace( '/\.(php|html)$/', '', $template_file );
202202
}
203203

0 commit comments

Comments
 (0)