[wp-trac] [WordPress Trac] #57902: REST API index does not respect fields
WordPress Trac
noreply at wordpress.org
Fri Mar 10 12:29:22 UTC 2023
#57902: REST API index does not respect fields
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.1
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
Follow on from [53760].
The REST API index, that can be found at /wp-json, does not respect fields
param.
Take this API request for example.
/wp-json?_fields=name
Links are still prepared and returned.
{{{#!php
{
"name": "Test site",
"_links": {
"help": [
{
"href": "https://developer.wordpress.org/rest-api/"
}
]
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57902>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list