Skip to content

Commit

Permalink
Ensure lodash is included in our dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Dec 18, 2024
1 parent 4542f8a commit 5b503de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Classifai/Features/ContentResizing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/TitleGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 5b503de

Please sign in to comment.