create-block-theme icon indicating copy to clipboard operation
create-block-theme copied to clipboard

Patternize + Escape templates with strings

Open jffng opened this issue 2 years ago • 0 comments

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.

jffng avatar Dec 07 '23 23:12 jffng