From 41e0db32e046e4ea24709f45a930b91dd7dedbbb Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 8 Jul 2025 08:52:27 +0000 Subject: [PATCH] Twenty Twenty-Five: Ensure Editor styles are enqueued. This changeset replaces get_parent_theme_file_uri( 'assets/css/editor-style.css' ) with add_editor_style( 'assets/css/editor-style.css' ); to ensure a relative path to the stylesheet file is used, and not an URL. This prevents the editor stylesheet from not being enqueued on various edge cases. Merges [60424] to the 6.8 branch. Props wildworks, sabernhardt, dhruvang21, karmatosed, SirLouen, audrasjb, sandeepdahiya. Fixes #63399. Built from https://develop.svn.wordpress.org/branches/6.8@60433 git-svn-id: http://core.svn.wordpress.org/branches/6.8@59769 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyfive/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentytwentyfive/functions.php b/wp-content/themes/twentytwentyfive/functions.php index ddb42a89f2..3805c48052 100644 --- a/wp-content/themes/twentytwentyfive/functions.php +++ b/wp-content/themes/twentytwentyfive/functions.php @@ -34,7 +34,7 @@ if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) : * @return void */ function twentytwentyfive_editor_style() { - add_editor_style( get_parent_theme_file_uri( 'assets/css/editor-style.css' ) ); + add_editor_style( 'assets/css/editor-style.css' ); } endif; add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9ae651a289..e2932aa5d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8.2-alpha-60432'; +$wp_version = '6.8.2-alpha-60433'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.