[wp-trac] [WordPress Trac] #59499: Block custom CSS: Fix incorrect CSS when multiple root selectors

WordPress Trac noreply at wordpress.org
Sat Oct 7 14:53:43 UTC 2023


#59499: Block custom CSS: Fix incorrect CSS when multiple root selectors
---------------------------------------+---------------------
 Reporter:  wildworks                  |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  6.4
Component:  Editor                     |     Version:  trunk
 Severity:  normal                     |  Resolution:
 Keywords:  gutenberg-merge has-patch  |     Focuses:
---------------------------------------+---------------------

Comment (by wildworks):

 Sorry for the late reply. I've submitted a pull request.

 By the way, this PHP code has exactly the same logic as the JS on the
 editor side: https://github.com/WordPress/gutenberg/blob/trunk/packages
 /block-editor/src/components/global-styles/use-global-styles-
 output.js#L1132-L1158

 If the PHP code that has been changed as a result of the review is
 committed on the core side, it may be necessary to submit a PR on the
 Gutenberg side and backport it again to reflect it on the JS side.

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


More information about the wp-trac mailing list