wordpress-develop/tests/phpunit/data/blocks/notice
Greg Ziółkowski d9599addd1 Blocks: Add support for variations in block.json` file
We integrated variations with block types and the corresponding REST API endpoint in #52688. It's a follow-up patch to add missing support to the `block.json` metadata file when using `register_block_type`.

Some fields for variations are translatable.Therefore, i18n schema was copied over from Gutenberg: https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/src/api/i18n-block.json. The accompanying implementation was adapted as `translate_settings_using_i18n_schema`.

Props: gwwar, swissspidy, schlessera, jorgefilipecosta.
Fixes #53238.



git-svn-id: https://develop.svn.wordpress.org/trunk@51599 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-11 09:06:31 +00:00
..
block-rtl.css Blocks: Add automatic RTL handlind for block styles registered from metadata 2021-01-19 11:48:59 +00:00
block.asset.php Blocks: Add i18n support to register_block_type_from_metadata 2021-01-19 11:04:03 +00:00
block.css Blocks: Add i18n support to register_block_type_from_metadata 2021-01-19 11:04:03 +00:00
block.js Blocks: Add i18n support to register_block_type_from_metadata 2021-01-19 11:04:03 +00:00
block.json Blocks: Add support for variations in block.json` file 2021-08-11 09:06:31 +00:00