Make WordPress Core


Ignore:
Timestamp:
09/19/2019 02:04:51 PM (4 years ago)
Author:
kadamwhite
Message:

REST API: Support dot.nested hierarchical properties in _fields query parameter.

Enable clients to opt-in to receipt of one or more specific sub-properties within a response, and not other sub-properties.
Skip potentially expensive filtering and processing for post resources which were explicitly not requested.

Props kadamwhite, TimothyBlynJacobs, dlh.
Fixes #42094.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-controller.php

    r45706 r46184  
    233233        return array(
    234234            array(
    235                 'somestring,someinteger',
     235                'somestring,someinteger,someinvalidkey',
    236236                array(
    237237                    'somestring',
Note: See TracChangeset for help on using the changeset viewer.