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
This commit is contained in:
davidbaumwald 2022-10-03 14:41:14 +00:00
parent 16a24b396e
commit a68841201d
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) { foreach ( $this->block_type->view_script_handles as $view_script_handle ) {
wp_enqueue_script( $view_script_handle ); wp_enqueue_script( $view_script_handle );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.