Skip to content
5 changes: 5 additions & 0 deletions src/wp-content/themes/twentytwentyfive/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function twentytwentyfive_enqueue_styles() {
array(),
wp_get_theme()->get( 'Version' )
);
wp_style_add_data(
'twentytwentyfive-style',
'path',
get_parent_theme_file_path( $src )
);
}
endif;
add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );
Expand Down
10 changes: 6 additions & 4 deletions src/wp-content/themes/twentytwentytwo/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ function twentytwentytwo_styles() {
$suffix = SCRIPT_DEBUG ? '' : '.min';
$src = 'style' . $suffix . '.css';

wp_register_style(
wp_enqueue_style(
'twentytwentytwo-style',
get_parent_theme_file_uri( $src ),
array(),
$version_string
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'twentytwentytwo-style' );
wp_style_add_data(
'twentytwentytwo-style',
'path',
get_parent_theme_file_path( $src )
);
}

endif;
Expand Down
Loading