[wp-trac] [WordPress Trac] #53741: wp-admin/css/common.min.css is loading on the front-end

WordPress Trac noreply at wordpress.org
Mon Aug 30 19:15:32 UTC 2021

#53741: wp-admin/css/common.min.css is loading on the front-end
 Reporter:  mdahlke              |       Owner:  (none)
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  5.8.1
Component:  Script Loader        |     Version:  5.8
 Severity:  normal               |  Resolution:
 Keywords:  needs-testing close  |     Focuses:

Comment (by sabernhardt):

 The `wp-edit-blocks` dependencies are defined in
 loader.php?rev=51657#L1522 script-loader.php] and the stylesheet itself is
 compiled from [https://github.com/WordPress/gutenberg/blob/trunk/packages
 /block-library/src/editor.scss block-library/src/editor.scss].

 For documentation, I only found a [https://developer.wordpress.org/block-
 javascript-and-css documentation example] ''suggesting'' `wp-edit-blocks`
 as a dependency on an admin page, which does not specifically discourage
 other uses. The existing `wp-` prefix on `wp-edit-blocks` and `wp-reset-
 editor-styles` might be enough to signify that these styles are subject to

 With the `customize-widgets` dependencies, the common.css styles could
 affect content within the Customizer panel (as much as it would change in
 the block-based Widgets editor), but that does not alter the preview.

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

More information about the wp-trac mailing list