Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/class-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function ( $content ) {

}

if ( function_exists( 'get_block_templates' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {
if ( function_exists( 'get_block_templates' ) && ( current_theme_supports( 'block-templates' ) || current_theme_supports( 'block-template-parts' ) ) ) {
$this->enqueue_dependencies( 'block-templates' );
}
}
Expand Down
2 changes: 1 addition & 1 deletion inc/css/class-block-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public function enqueue_widgets_css() {
* @access public
*/
public function enqueue_fse_css() {
if ( ! ( function_exists( 'get_block_templates' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) ) {
if ( ! ( function_exists( 'get_block_templates' ) && ( current_theme_supports( 'block-templates' ) || current_theme_supports( 'block-template-parts' ) ) ) ) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/blocks/test/performance/specs/post-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ test.describe( 'Post Editor Performance', () => {
name: 'Block Inserter',
} );
const paragraphBlockItem = page.locator(
'.block-editor-inserter__menu .editor-block-list-item-paragraph'
'.block-editor-inserter__menu .editor-block-list-item-paragraph\\/paragraph'
);
const headingBlockItem = page.locator(
'.block-editor-inserter__menu .editor-block-list-item-heading'
'.block-editor-inserter__menu .editor-block-list-item-heading\\/heading'
);

// Open Inserter.
Expand Down
Loading