register_block_type
's editor_script
handle fails if it is an array.
#44687
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
Needs Testing
Needs further testing to be confirmed.
Description
When creating a custom block, I was giving editor_script multiple handles and passing them as an array.
This works fine in WP6.0, but fails in WP61, making the block unusable.
I know that editor_script was deprecated in WP6.1 and replaced with editor_script_handles, but it is not backward compatible that editor_script cannot be passed as an array, so please fix this.
Step-by-step reproduction instructions
In the following sample Works on wp6.0 and fails on wp61.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.1-beta3
Gutenberg 14.2
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: