From 0f876375fc4ca374d05f358476a08feb20c76702 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Thu, 12 May 2022 11:14:29 -0300 Subject: [PATCH] fix: get only metadta with patent equals `0` #184 --- src/classes/repositories/class-tainacan-metadata-sections.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/repositories/class-tainacan-metadata-sections.php b/src/classes/repositories/class-tainacan-metadata-sections.php index eb3de6368..f40e5dcf4 100644 --- a/src/classes/repositories/class-tainacan-metadata-sections.php +++ b/src/classes/repositories/class-tainacan-metadata-sections.php @@ -310,6 +310,7 @@ class Metadata_Sections extends Repository { $metadata_section = $this->fetch($metadata_section_id); if ($metadata_section) { $args = array( + 'parent' => 0, 'meta_query' => [ [ 'key' => 'metadata_section_id',