From b16611ea1c35b13a6c0c7ebf8a53fb70ad27b66b Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Thu, 17 Jun 2021 00:30:44 -0300 Subject: [PATCH] fix: ignore item_metadata logs if no data change. --- src/classes/repositories/class-tainacan-logs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/classes/repositories/class-tainacan-logs.php b/src/classes/repositories/class-tainacan-logs.php index 075e0f973..3b0101790 100644 --- a/src/classes/repositories/class-tainacan-logs.php +++ b/src/classes/repositories/class-tainacan-logs.php @@ -740,7 +740,9 @@ class Logs extends Repository { } private function insert_item_metadata( Entities\Item_Metadata_Entity $entity ) { - + if($this->current_diff == false) { + return; + } $log = new Entities\Log(); $item_id = $entity->get_item()->get_id();