diff --git a/plugins/woocommerce/changelog/fix-product-editor-images-block b/plugins/woocommerce/changelog/fix-product-editor-images-block new file mode 100644 index 00000000000..1f469c3b618 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-product-editor-images-block @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Enqueue media scripts for Images block within the product editor, as is required for Images block. diff --git a/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/Init.php b/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/Init.php index ab1a43454ec..09d99a19d7a 100644 --- a/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/Init.php +++ b/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/Init.php @@ -100,6 +100,7 @@ class Init { 'before' ); wp_tinymce_inline_scripts(); + wp_enqueue_media(); } /**