Changes metas to meta

This commit is contained in:
weryques 2018-05-07 15:04:45 -03:00
parent 0d13adef5e
commit 47312f8f93
2 changed files with 2 additions and 3 deletions

View File

@ -142,9 +142,9 @@ class REST_Items_Controller extends REST_Controller {
$attributes_to_filter = $request['fetch_only'];
$item_arr = $this->filter_object_by_attributes($item, $attributes_to_filter);
if(array_key_exists('metas', $attributes_to_filter)){
if(array_key_exists('meta', $attributes_to_filter)){
$args = array('post__in' => $attributes_to_filter['metas']);
$args = array('post__in' => $attributes_to_filter['meta']);
$item_arr = $this->add_metadata_to_item($item, $item_arr, $args);
}

View File

@ -42,7 +42,6 @@
size="is-small"
class="is-size-7"
attached
rounded="false"
closable
@close="clearSearch()">
{{ showSearch() }}