proof of concept of #236

This commit is contained in:
leogermani 2019-05-22 18:12:22 -03:00
parent 5b65c9e85d
commit ebed93a682
1 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ class Items extends Repository {
$metadata = Metadata::get_instance()->fetch([
'metadata_type' => 'Tainacan\Metadata_Types\Taxonomy',
'post__in' => array_keys($metas)
], [], 'OBJECT');
], 'OBJECT');
if (empty($metadata)) {
return $args;
@ -446,7 +446,7 @@ class Items extends Repository {
$metaquery = $args['meta_query'][$index];
$options = $metadatum->get_metadata_type_options();
$tax_id = $options['taxonomy_id'];
$tax_slug = Taxonomy::get_instance()->get_db_identifier_by_id($tax_id);
$tax_slug = Taxonomies::get_instance()->get_db_identifier_by_id($tax_id);
if (!isset($metaquery['compare']) || $metaquery['compare'] == '=' || $metaquery['compare'] == 'IN' ) {