Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #712 from WordPress/fix/rely-on-parent-theme-data-…
Browse files Browse the repository at this point in the history
…for-block-style

Rely on parent theme data for block style
  • Loading branch information
MaggieCabrera authored Oct 31, 2023
2 parents e2ae63e + ac2eee1 commit 5e8a960
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function twentytwentyfour_block_styles() {
'core/button',
array(
'handle' => 'twentytwentyfour-button-style-outline',
'src' => get_theme_file_uri( 'assets/css/button-outline.css' ),
'ver' => wp_get_theme( 'twentytwentyfour' )->get( 'Version' ),
'path' => get_theme_file_path( 'assets/css/button-outline.css' ),
'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ),
'ver' => wp_get_theme( get_template() )->get( 'Version' ),
'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ),
)
);

Expand Down

0 comments on commit 5e8a960

Please sign in to comment.