Skip to content

Commit 5e8a960

Browse files
Merge pull request WordPress#712 from WordPress/fix/rely-on-parent-theme-data-for-block-style
Rely on parent theme data for block style
2 parents e2ae63e + ac2eee1 commit 5e8a960

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ function twentytwentyfour_block_styles() {
3232
'core/button',
3333
array(
3434
'handle' => 'twentytwentyfour-button-style-outline',
35-
'src' => get_theme_file_uri( 'assets/css/button-outline.css' ),
36-
'ver' => wp_get_theme( 'twentytwentyfour' )->get( 'Version' ),
37-
'path' => get_theme_file_path( 'assets/css/button-outline.css' ),
35+
'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ),
36+
'ver' => wp_get_theme( get_template() )->get( 'Version' ),
37+
'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ),
3838
)
3939
);
4040

0 commit comments

Comments
 (0)