-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export tool turns var() into unicode characters #37671
Comments
Thanks for the ping, @annezazu. Assing this issue to myself and will have a look next week. |
I believe this is happening for any instance of For example, |
Hi, @scruffian Since you worked on recent export updates, do you remember if this is still an issue? |
We decided that this is the correct behaviour, see #39576 |
Thank you, @scruffian. |
I'm confused, does this mean we're unable to use BEM class names for blocks? I have a select box that lets the user select multiple classes to apply to their block, which it saves as an array of class names, and right now my client is getting the "attempt block recovery" warning because classes like |
Description
Issue
When template files use variable
var()
, export tool turns the variable into Unicode characters.For example, Page template in Twenty Twenty-Two uses
var(--wp--custom--spacing--medium, 6rem)
on the line 5.After exporting, the variable turns into
var(\u002d\u002dwp\u002d\u002dcustom\u002d\u002dspacing\u002d\u002dmedium, 6rem)
.Step-by-step reproduction instructions
Environment info
I tested on 5.9-beta4 using Gutenberg v12.2.0 on Firefox / macOS.
The text was updated successfully, but these errors were encountered: