Installed font families are not downloaded to the theme folder when the option 'Clone theme' and after that changes are saved to the theme using Save Changes to the Theme` button.
Clone the theme using these buttons: Create Theme -> Clone Theme.
Save using Save Changes to the Theme button.
Problem explained technically:
When Clone Theme is used and there are custom fonts activated in the global styles, these fonts are added using an absolute link in the new theme.json created. When the changes are saved using Save Changes to the Theme those fonts are not processed (they are not downloaded and the link is not transformed to be relative to theme).
Expected result
The Clone Theme option probably should have the same options so the user can control if the fonts are processed when the theme is cloned.
What?
Installed font families are not downloaded to the theme folder when the option 'Clone theme' and after that changes are saved to the theme using Save Changes to the Theme` button.
This issue was found working on this: https://github.com/Automattic/themes/pull/7865
Step by step:
Create Theme
->Clone Theme
.Save Changes to the Theme
button.Problem explained technically:
When
Clone Theme
is used and there are custom fonts activated in the global styles, these fonts are added using an absolute link in the newtheme.json
created. When the changes are saved usingSave Changes to the Theme
those fonts are not processed (they are not downloaded and the link is not transformed to be relative to theme).Expected result
The
Clone Theme
option probably should have the same options so the user can control if the fonts are processed when the theme is cloned.