wordpress-develop/tests/phpunit/data/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
..
fixtures Block Editor: Update the WordPress packages for 5.6 beta 2 2020-10-27 09:32:50 +00:00
notice Blocks: Add support for variations in block.json` file 2021-08-11 09:06:31 +00:00
pattern-directory Block Editor: Add support for the pattern directory. 2021-05-26 01:10:57 +00:00
do-blocks-expected.html Blocks: Parse blocks when displaying posts. 2018-12-13 18:11:10 +00:00
do-blocks-original.html Blocks: Introduce register_block_type(), unregister_block_type(), and get_dynamic_blocks() functions. 2018-12-13 09:53:10 +00:00