Skip to content

Commit 61ea8fe

Browse files
authored
Merge pull request #507 from BeAPI/fix/hash-css
fix(Assets): update theme style registration to use asset version from data array
2 parents e4f7134 + 31d8733 commit 61ea8fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎inc/Services/Assets.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function register_assets(): void {
7979
);
8080

8181
// Styles
82-
wp_register_style( 'theme-style', get_stylesheet_uri(), [], $theme->get( 'Version' ) );
82+
wp_register_style( 'theme-style', get_stylesheet_uri(), [], $asset_data['version'] );
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)