From 5b503de746a74aac73d1c491dbeb284dfc0fe77b Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Dec 2024 08:44:03 -0700 Subject: [PATCH] Ensure lodash is included in our dependencies --- includes/Classifai/Features/ContentResizing.php | 2 +- includes/Classifai/Features/TitleGeneration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Classifai/Features/ContentResizing.php b/includes/Classifai/Features/ContentResizing.php index ef46f641b..745623fe8 100644 --- a/includes/Classifai/Features/ContentResizing.php +++ b/includes/Classifai/Features/ContentResizing.php @@ -192,7 +192,7 @@ public function enqueue_editor_assets() { wp_enqueue_script( 'classifai-plugin-content-resizing-js', CLASSIFAI_PLUGIN_URL . 'dist/classifai-plugin-content-resizing.js', - get_asset_info( 'classifai-plugin-content-resizing', 'dependencies' ), + array_merge( get_asset_info( 'classifai-plugin-content-resizing', 'dependencies' ), [ 'lodash' ] ), get_asset_info( 'classifai-plugin-content-resizing', 'version' ), true ); diff --git a/includes/Classifai/Features/TitleGeneration.php b/includes/Classifai/Features/TitleGeneration.php index f65051af2..eb2e50cc5 100644 --- a/includes/Classifai/Features/TitleGeneration.php +++ b/includes/Classifai/Features/TitleGeneration.php @@ -204,7 +204,7 @@ public function enqueue_editor_assets() { wp_enqueue_script( 'classifai-plugin-title-generation-js', CLASSIFAI_PLUGIN_URL . 'dist/classifai-plugin-title-generation.js', - get_asset_info( 'classifai-plugin-title-generation', 'dependencies' ), + array_merge( get_asset_info( 'classifai-plugin-title-generation', 'dependencies' ), [ 'lodash' ] ), get_asset_info( 'classifai-plugin-title-generation', 'version' ), true );