From 5d36f2da2b9f42718a01eb2a845557f899dd3a8a Mon Sep 17 00:00:00 2001 From: leogermani Date: Mon, 21 Jan 2019 15:08:03 -0200 Subject: [PATCH] fix tests --- src/classes/repositories/class-tainacan-item-metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/repositories/class-tainacan-item-metadata.php b/src/classes/repositories/class-tainacan-item-metadata.php index ca620c7b8..1ea50029a 100644 --- a/src/classes/repositories/class-tainacan-item-metadata.php +++ b/src/classes/repositories/class-tainacan-item-metadata.php @@ -108,7 +108,7 @@ class Item_Metadata extends Repository { $this->logs_repository->insert_log( $item_metadata, $diffs, $is_update ); } - do_action( 'tainacan-insert', $item_metadata, $diffs, $is_update ); + do_action( 'tainacan-insert', $item_metadata, $this->use_logs ? $diffs : null, $is_update ); do_action( 'tainacan-insert-Item_Metadata_Entity', $item_metadata ); }