From 5236ec8b73680813b84a9009945472cff4ca4d16 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Mon, 6 May 2024 16:52:05 +0900 Subject: [PATCH] Replace to editor_script_handles `editor_script` is [deprecated](https://developer.wordpress.org/reference/classes/wp_block_type/__construct/#changelog). Closes #1417 --- includes/block-editor/block-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/block-editor/block-editor.php b/includes/block-editor/block-editor.php index 89bde8a6..403c369b 100644 --- a/includes/block-editor/block-editor.php +++ b/includes/block-editor/block-editor.php @@ -46,7 +46,7 @@ function wpcf7_init_block_editor_assets() { register_block_type( wpcf7_plugin_path( 'includes/block-editor' ), array( - 'editor_script' => 'contact-form-7-block-editor', + 'editor_script_handles' => 'contact-form-7-block-editor', ) ); }