[wp-trac] [WordPress Trac] #63399: Twenty Twenty-Five: editor style isn't enqueued

WordPress Trac noreply at wordpress.org
Tue May 6 14:01:19 UTC 2025


#63399: Twenty Twenty-Five: editor style isn't enqueued
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  6.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Twenty Twenty-Five has [https://github.com/WordPress/wordpress-
 develop/blob/0f5314739c80b9cdf22e13b272b69c7c9ea5df28/src/wp-
 content/themes/twentytwentyfive/functions.php#L37 `add_editor_style`
 function ] to enqueue styles for the editor.

 However, since the parameter `get_parent_theme_file_uri( 'assets/css
 /editor-style.css' )` generates a URL, not a relative path to the
 stylesheet file, the editor style isn't enqueued.

 The correct code should be:

 {{{
 add_editor_style( 'assets/css/editor-style.css' );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63399>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list