[wp-trac] [WordPress Trac] #58462: Ignore unregistered style variations declared via `theme.json`

WordPress Trac noreply at wordpress.org
Tue Jun 6 08:37:53 UTC 2023


#58462: Ignore unregistered style variations declared via `theme.json`
--------------------------+-----------------------------
 Reporter:  oandregal     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Unregistered block style variations declared via `theme.json` are
 considered to be valid. As a result,

 - The site editor does not load when one is found in a `theme.json`
 dataset.
 - The global styles stylesheet (front-end) contains a CSS rule that
 doesn't have a selector.

 == Proposed solution

 Make sure style variations processed from `theme.json` are registered and
 ignore the ones that are not.

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


More information about the wp-trac mailing list