Always returns ID when fetch_only
This commit is contained in:
parent
47312f8f93
commit
745da67be3
|
@ -140,6 +140,8 @@ class REST_Items_Controller extends REST_Controller {
|
|||
}
|
||||
|
||||
$attributes_to_filter = $request['fetch_only'];
|
||||
# Always returns id
|
||||
$attributes_to_filter[] = 'id';
|
||||
$item_arr = $this->filter_object_by_attributes($item, $attributes_to_filter);
|
||||
|
||||
if(array_key_exists('meta', $attributes_to_filter)){
|
||||
|
|
Loading…
Reference in New Issue