Closed ntsekouras closed 2 years ago
Putting this to draft state as it has been surfaced here: https://github.com/WordPress/wordpress-develop/pull/1483, that a version check for patterns should be added, besides the version check for the theme itself
This PR updates the deprecated block patterns in
tt1-blocks
theme.The diff is kind of rough and not visible.
Some of the deprecations were:
Image
blocks withalign
left, right or center needed adiv
wrapper and the appropriate classesGroup
block with the extra divwp-block-group__inner-container
Column
blocks with a number inwidth
like<!-- wp:column {"width":80}
. The current shape has width as astring
, so it should be<!-- wp:column {"width":"80%"}
Testing instructions
In general it should be a good practice to keep block patterns updated and all themes included in core should be updated if needed.
Related: https://github.com/WordPress/gutenberg/issues/33148