create-block-theme
create-block-theme copied to clipboard
Patternize + Escape templates with strings
Background Currently, only templates with images are transformed to patterns. In this process, the image is made "local" to the theme, as well as strings get escaped and marked for translation.
https://github.com/WordPress/create-block-theme/blob/017d52004e46d6c2ab38e68ef1be2bc08922fb2f/admin/create-theme/theme-zip.php#L114C44-L130
Proposal It could be useful to allow all templates that contain strings, to follow the same behavior — transformed to a pattern and strings escaped + marked for translation.