Changeset 52275 for trunk/src/wp-includes/blocks/template-part.php
- Timestamp:
- 11/30/2021 12:22:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/template-part.php
r52135 r52275 54 54 // Else, if the template part was provided by the active theme, 55 55 // render the corresponding file content. 56 $template_part_file_path = get_theme_file_path( '/block-template-parts/' . $attributes['slug'] . '.html' ); 56 $theme_folders = get_block_theme_folders(); 57 $template_part_file_path = get_theme_file_path( '/' . $theme_folders['wp_template_part'] . '/' . $attributes['slug'] . '.html' ); 57 58 if ( 0 === validate_file( $attributes['slug'] ) && file_exists( $template_part_file_path ) ) { 58 59 $content = file_get_contents( $template_part_file_path );
Note: See TracChangeset
for help on using the changeset viewer.