wordpress-develop/tests/phpunit/data/blocks
Greg Ziółkowski 3381f05fa2 Blocks: Allow registering multiple items for all supported asset types
Follow-up #54337, [52069]. Part of https://github.com/WordPress/gutenberg/issues/41236. More details in https://github.com/WordPress/gutenberg/issues/33542.

Allow passing more than one script per block for `editorScript`, `script`, and `viewScript` fields in the `block.json` metadata file. This aligns with the previously added changes for `style` and `editorStyle` fields.

This change impacts the `WP_Block_Type` class and the REST API endpoint for block types. To ensure backward compatibiliy old names were soft deprecated in favor of new fields that work with array values and have `_handles` suffix.

Props zieladam, dlh, timothyblynjacobs, aristath, bernhard-reiter.
Fixes #56408.



git-svn-id: https://develop.svn.wordpress.org/trunk@54155 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-14 10:50:26 +00:00
..
fixtures Tests: Update Gallery block unit tests to new gallery format 2022-04-25 16:55:45 +00:00
notice Blocks: Allow registering multiple items for all supported asset types 2022-09-14 10:50:26 +00:00
pattern-directory Block Patterns: Update the value used for keywords. 2022-07-05 16:01:36 +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