wp_get_global_styles
: for custom props, it should return the CSS format not the shortened internal one
#49693
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Related #45171
Description
The
wp_get_global_styles
functions returns an internal format for CSS Custom Properties instead of the proper CSS format.Step-by-step reproduction instructions
theme.json
.styles.blocks
:wp_get_global_styles
functions to retrieve those styles. For example, paste the following infunctions.php
of the theme:The result will be:
when it should have been
Note the
color.background
value. It should return the value in a valid CSS value, not the shortened internal format.The text was updated successfully, but these errors were encountered: