From a68841201d85efa789be30f1804c3dae13c44302 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Mon, 3 Oct 2022 14:41:14 +0000 Subject: [PATCH] Editor: Ensure block script is enqueued, regardless of `ronder_callback`. Follow-up to [54155]. Props aristath, cbravobernal. See #56408. Built from https://develop.svn.wordpress.org/trunk@54367 git-svn-id: http://core.svn.wordpress.org/trunk@53926 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-block.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php index 02b5b3d5bc..8a51e66085 100644 --- a/wp-includes/class-wp-block.php +++ b/wp-includes/class-wp-block.php @@ -266,7 +266,7 @@ class WP_Block { } } - if ( ! empty( $this->block_type->view_script_handles ) && empty( $this->block_type->render_callback ) ) { + if ( ! empty( $this->block_type->view_script_handles ) ) { foreach ( $this->block_type->view_script_handles as $view_script_handle ) { wp_enqueue_script( $view_script_handle ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c5b7aaad9c..89279208ba 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta2-54366'; +$wp_version = '6.1-beta2-54367'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.