Creating a style variation from a theme results in broken
pshemek opened this issue · comments
I started a child theme of Twenty Twenty-Four.
EDIT: I have now tested with a non-child theme and neither was able to create the correct styles/theme.json
I want to have different style variations of that child theme, so I try to use Appearance -> Create Block Theme -> Create a style variation generator.
However, once I insert the variation title and hit the button, the warnings appear:
Warning: Undefined array key "slug" in /.../wp-content/plugins/create-block-theme/admin/create-theme/theme-json.php on line 19
Warning: Undefined array key "slug" in /.../wp-content/plugins/create-block-theme/admin/create-theme/theme-json.php on line 23
Warning: Undefined array key "slug" in /.../wp-content/plugins/create-block-theme/admin/create-theme/theme-json.php on line 33
And the notice says:
Your variation of MyChildTheme has been created successfully. The new variation file is in /.../wp-content/themes/mychildtheme/styles/.json
The broken file contains only:
{
"title": "",
"version": 2,
"$schema": "https://schemas.wp.org/wp/6.5/theme.json"
}
I am aware that the old export screen is going to be deprecated but this is what I'm getting now when trying to create a child theme variation. Maybe it is going to be resolved along with the new export UI.
Solved with the new UI in 2.1.0