You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
Undefined name for XX-Large font size setting #280
I noticed a missing name value for the xx-large font size.
The others have a value from core (i.e. "Small", "Medium", "Large", Extra Large") — but xx-large is custom to Twenty Twenty Three, so it does not have a name.
I think XXL is a Core size, and I believe the 'undefined' issue should have been fixed by WordPress/gutenberg#44791, although I can also currently reproduce this with WP 6.1 RC1.
I'm now seeing this on all font size presets defined by the theme, not just XXL. It looks like it happens when the theme does not supply a name key for the font size preset, even if it's an 'official' Core preset size.
Activity
richtabor commentedon Oct 13, 2022
This may be related (odd font size behavior in
Marigold):carolinan commentedon Oct 14, 2022
We are past the string freeze for 6.1, I hope an exception can still be made.
carolinan commentedon Oct 14, 2022
I do find it strange that it does not automatically fall back to for example the slug. I would expect the editor to handle a missing name.
richtabor commentedon Oct 14, 2022
Are the strings in theme.json font size name values translated?
richtabor commentedon Oct 14, 2022
Perhaps it should fallback to the
slugvalue, if one is not provided.mikachan commentedon Oct 14, 2022
I think XXL is a Core size, and I believe the 'undefined' issue should have been fixed by WordPress/gutenberg#44791, although I can also currently reproduce this with WP 6.1 RC1.
richtabor commentedon Oct 15, 2022
I don't see it here. Would it be elsewhere?
Yea I'm testing with RC1
mikachan commentedon Oct 17, 2022
The XXL size is listed here.
I've reported the issue here, and I'll see if I can find where this has broken between the above issue and now.
mikachan commentedon Oct 17, 2022
I'm now seeing this on all font size presets defined by the theme, not just XXL. It looks like it happens when the theme does not supply a
namekey for the font size preset, even if it's an 'official' Core preset size.I have a potential fix here: WordPress/gutenberg#45041.
mikachan commentedon Oct 18, 2022
This should be fixed with WordPress/gutenberg#45041, which will be included in WP 6.1 RC2 🎉
mikachan commentedon Oct 18, 2022
This is working in WP 6.1 RC2.