diff --git a/packages/create-block-interactive-template/CHANGELOG.md b/packages/create-block-interactive-template/CHANGELOG.md index 72ed6677e0b4ed..735790d07b803e 100644 --- a/packages/create-block-interactive-template/CHANGELOG.md +++ b/packages/create-block-interactive-template/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Prevent crash when Gutenberg plugin is not installed. [#56941](https://github.com/WordPress/gutenberg/pull/56941) + ## 1.10.1 (2023-12-07) - Update template to use modules instead of scripts. [#56694](https://github.com/WordPress/gutenberg/pull/56694) diff --git a/packages/create-block-interactive-template/block-templates/render.php.mustache b/packages/create-block-interactive-template/block-templates/render.php.mustache index 01cbe6ed83cfb5..0f6883a9362407 100644 --- a/packages/create-block-interactive-template/block-templates/render.php.mustache +++ b/packages/create-block-interactive-template/block-templates/render.php.mustache @@ -15,7 +15,9 @@ $unique_id = wp_unique_id( 'p-' ); // Enqueue the view file. -gutenberg_enqueue_module( '{{namespace}}-view' ); +if (function_exists('gutenberg_enqueue_module')) { + gutenberg_enqueue_module( '{{namespace}}-view' ); +} ?>