[wp-trac] [WordPress Trac] #53327: Twenty Twenty editor stylesheet causing issues on block Widgets screen

WordPress Trac noreply at wordpress.org
Tue Jun 15 07:36:07 UTC 2021


#53327: Twenty Twenty editor stylesheet causing issues on block Widgets screen
---------------------------+---------------------
 Reporter:  isabel_brison  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+---------------------

Comment (by youknowriad):

 I think the more we move towards declarative APIs, the better it is for
 me. `enqueue_block_editor_assets` is not really a declarative API, over
 time we favored APIs like:

  - register_block_type to register blocks and define to their assets
  - add_editor_styles to load editor styles in the post editor (there's no
 such thing for widgets editor yet as historically, widgets page didn't
 match the styling of the frontend unlike the classic editor)

 In other words, I don't think splitting that hook makes sense to me. I'd
 rather for us to think about whether there's an official API we should
 offer for editor styles for the widgets screen (aka #53388) and even there
 I'm not sure whether it's needed because the widgets.php page was never
 meant to match the frontend.

 I believe with each new feature added to Core, there's some adaptation is
 needed from existing themes and plugins and a dev note is required in
 these cases.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53327#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list