From e12f9c79b0ee0d8eb35a08ef9361230794659994 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Shah Date: Mon, 24 Feb 2025 00:25:38 +0530 Subject: [PATCH] Add path data for style.css inlining in Twenty Twenty-Five --- src/wp-content/themes/twentytwentyfive/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wp-content/themes/twentytwentyfive/functions.php b/src/wp-content/themes/twentytwentyfive/functions.php index ddb42a89f2b46..8e43ffca88008 100644 --- a/src/wp-content/themes/twentytwentyfive/functions.php +++ b/src/wp-content/themes/twentytwentyfive/functions.php @@ -55,6 +55,12 @@ function twentytwentyfive_enqueue_styles() { array(), wp_get_theme()->get( 'Version' ) ); + + wp_style_add_data( + 'twentytwentyfive-style', + 'path', + get_parent_theme_file_path( 'style.css' ) + ); } endif; add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );