[wp-trac] [WordPress Trac] #56684: Fluid and spacing settings in theme.json are lost when theme expor

WordPress Trac noreply at wordpress.org
Thu Sep 29 03:45:34 UTC 2022


#56684: Fluid and spacing settings in theme.json are lost when theme expor
--------------------------+-----------------------------
 Reporter:  ramonopoly    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 When exporting a theme that uses some `settings.spacing` values and/or
 `settings.typography.fluid`,

 - settings.spacing.spacingScale.steps -> field is lost
 - settings.spacing.spacingSizes.slug -> quotation is lost
 - settings.typography.fluid -> field is lost

 ## Step-by-step reproduction instructions
 - Use WP 6.1 nightly and Twenty Twenty Three without gutenberg plugin
 - Go to the site editor.
 - Select Three dots menu > Export

 To fix:

 - Fluid typography needs to be added as a valid setting in WP_Theme_JSON
 - The spacing presets config for spacingScale needs to be removed in
 WP_Theme_JSON as only spacingSizes should be defined.



 Issue on the Gutenberg repo:
 https://github.com/WordPress/gutenberg/issues/44546

 Props to Github user mayuge3

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


More information about the wp-trac mailing list