Skip to content

Commit d31fc0a

Browse files
committed
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. Props wildworks, sabernhardt, dhruvang21, karmatosed, SirLouen, audrasjb, sandeepdahiya. Fixes #63399. git-svn-id: https://develop.svn.wordpress.org/trunk@60424 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d826f87 commit d31fc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-content/themes/twentytwentyfive/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function twentytwentyfive_post_format_setup() {
3434
* @return void
3535
*/
3636
function twentytwentyfive_editor_style() {
37-
add_editor_style( get_parent_theme_file_uri( 'assets/css/editor-style.css' ) );
37+
add_editor_style( 'assets/css/editor-style.css' );
3838
}
3939
endif;
4040
add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' );

0 commit comments

Comments
 (0)