[wp-trac] [WordPress Trac] #54752: `load-styles.php` stylesheet not properly added in the editor

WordPress Trac noreply at wordpress.org
Wed Jan 5 16:53:02 UTC 2022


#54752: `load-styles.php` stylesheet not properly added in the editor
--------------------------+-----------------------------
 Reporter:  walbo         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In 5.9-RC1 the editor throws a warning in the console that says the `load-
 styles.php?...` stylesheet was not properly added.

 {{{
 Stylesheet  was not properly added.
 For blocks, use the block API's style (https://developer.wordpress.org
 /block-editor/reference-guides/block-api/block-metadata/#style) or
 editorStyle (https://developer.wordpress.org/block-editor/reference-guides
 /block-api/block-metadata/#editor-style).
 For themes, use add_editor_style (https://developer.wordpress.org/block-
 editor/how-to-guides/themes/theme-support/#editor-styles). <link
 rel="stylesheet" href="http://wpdev.test/wp-admin/load-
 styles.php?c=1&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-
 bar,buttons,media-views,editor-buttons,wp-components,wp-block-editor,wp-
 nux,wp-reusable-blocks,wp-editor,common,&load%5Bchunk_1%5D=forms,wp-
 reset-editor-styles,wp-block-library,wp-edit-blocks,wp-edit-post,wp-block-
 directory,wp-format-library,admin-menu,dashbo&load%5Bchunk_2%5D=ard
 ,list-tables,edit,revisions,media,themes,about,nav-menus,wp-
 pointer,widgets,site-icon,l10n,wp-auth-check,wp-block-library-
 the&load%5Bchunk_3%5D=me&ver=5.9-RC1" media="all">
 }}}

 Steps to reproduce:
 1. Create a new post
 2. Insert a buttons block.
 3. Click on the button
 4. Confirm the warning is thrown in the console.

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


More information about the wp-trac mailing list