diff --git a/src/classes/api/endpoints/class-tainacan-rest-items-controller.php b/src/classes/api/endpoints/class-tainacan-rest-items-controller.php index cf52a9550..576586bb3 100644 --- a/src/classes/api/endpoints/class-tainacan-rest-items-controller.php +++ b/src/classes/api/endpoints/class-tainacan-rest-items-controller.php @@ -883,7 +883,7 @@ class REST_Items_Controller extends REST_Controller { return new \WP_REST_Response( [ 'error_message' => __( 'Please verify, invalid value(s)', 'tainacan' ), 'errors' => $item_metadata->get_errors(), - 'item_metadata' => $this->prepare_item_for_response($item_metadata, $request), + 'item_metadata' => $this->prepare_item_for_response($item_metadata->get_item(), $request), ], 400 ); } } diff --git a/src/views/admin/components/metadata-types/taxonomy/class-tainacan-taxonomy.php b/src/views/admin/components/metadata-types/taxonomy/class-tainacan-taxonomy.php index d777d08e0..3b4bf7937 100644 --- a/src/views/admin/components/metadata-types/taxonomy/class-tainacan-taxonomy.php +++ b/src/views/admin/components/metadata-types/taxonomy/class-tainacan-taxonomy.php @@ -293,8 +293,8 @@ class Taxonomy extends Metadata_Type { $item = $item_metadata->get_item(); - if ( !in_array($item->get_status(), apply_filters('tainacan-status-require-validation', ['publish','future','private'])) ) - return true; + // if ( !in_array($item->get_status(), apply_filters('tainacan-status-require-validation', ['publish','future','private'])) ) + // return true; $valid = true;