Unknown object type
-
Checking out this plugin, and have noticed that if using the
_fields
filter parameter the object type could get set as unknown.To test this: visit
wp-json/wp/v2/posts/?_fields=title
. Since it’s filtering the endpoint to only return the title field, there isn’t atype
to get the object type of ‘post’. I think some additional info is needed to determine the current object type.Assuming that it’s necessary to invalidate cache based on a object when those objects get updated..
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Unknown object type’ is closed to new replies.