register_block_typeの第2引数の連想配列においてeditor_script
やeditor_style
などがeditor_script_handles
、editor_style_handles
など_handles
が付いた形に変わり複数同時に指定できるようになりました。
そして、旧来のeditor_script
やeditor_style
の指定がDeprecatedになってます。
まだ動きますが、Deprecatedってことはいつか動かなくなるかもしれないってことなので、要対応ですね。
register_block_type('myblocks/myblock',[
'editor_script'=>'editor-script-handle',
'editor_style'=>'editor-style-handle'
]);
↓
register_block_type('myblocks/myblock',[
'editor_script_handles'=>['editor-script-handle'],
'editor_style_handles'=>['editor-style-handle']
]);
参考:https://core.trac.wordpress.org/browser/tags/6.1/src/wp-includes/class-wp-block-type.php#L245
@since 6.1.0 Added the `editor_script_handles`, `script_handles`, `view_script_handles`,
`editor_style_handles`, and `style_handles` properties.
Deprecated the `editor_script`, `script`, `view_script`, `editor_style`, and `style` properties.