[wp-trac] [WordPress Trac] #38131: REST API: Provide interface to include or exclude specific fields from response JSON

WordPress Trac noreply at wordpress.org
Wed Aug 9 22:42:52 UTC 2017


#38131: REST API: Provide interface to include or exclude specific fields from
response JSON
-------------------------+-----------------------------
 Reporter:  kadamwhite   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  REST API     |     Version:  4.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+-----------------------------

Comment (by jnylen0):

 I don't think the patches here are taking the correct approach.  For one
 issue, this won't work with `rest_do_request()` in PHP-internal code; for
 another, it doesn't provide any way forward on performance (all fields
 will still be calculated, regardless of whether they are needed).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38131#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list