wordpress-develop/tests/phpunit/tests/blocks
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
..
context.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
editor.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
register.php Blocks: Add support for variations in block.json` file 2021-08-11 09:06:31 +00:00
render.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
renderReusable.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
serialize.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
supportedStyles.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpBlock.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpBlockList.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpBlockParser.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
wpBlockType.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
wpBlockTypeRegistry.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00