Skip to content

Commit c09497e

Browse files
authored
Merge pull request #218 from OpenSourceOrg/fix/216-license-templates-broken
Fix for broken templates after 6.9 update
2 parents 928895c + cc9dcae commit c09497e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

themes/osi/functions.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,10 @@ function osi_enqueue_swiper_assets(): void {
584584
wp_enqueue_script( 'swiper-js', 'https://unpkg.com/swiper@11/swiper-bundle.min.js', array(), filemtime( untrailingslashit( get_template_directory() ) . '/style.css' ), true );
585585
}
586586
add_action( 'wp_enqueue_scripts', 'osi_enqueue_swiper_assets' );
587+
588+
/**
589+
* Disable loading separate block styles for the osi theme.
590+
*
591+
* @return bool
592+
*/
593+
add_filter( 'should_load_separate_core_block_assets', '__return_false' );

0 commit comments

Comments
 (0)