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
This commit is contained in:
audrasjb
2025-07-08 08:52:27 +00:00
parent ed9c140661
commit 41e0db32e0
2 changed files with 2 additions and 2 deletions

View File

@@ -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' );

View File

@@ -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.