[wp-trac] [WordPress Trac] #49252: REST API response not valid for null on 5.3.2

WordPress Trac noreply at wordpress.org
Mon Jan 20 19:47:24 UTC 2020


#49252: REST API response not valid for null on 5.3.2
-------------------------------+------------------------------
 Reporter:  jankadlec          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:  5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => reporter-feedback
 * version:  5.3.2 => 5.3
 * severity:  major => normal


Comment:

 Thanks for the ticket @jankadlec and welcome to trac!

 Could you explain why you think that should be the case?

 In the WP REST API if you are requesting a single item, and nothing is
 found, a 404 should be issue with an error response. If you are requesting
 a collection of items, and no items are found that match the request
 parameters, then an empty list is returned.

 See #43691.

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


More information about the wp-trac mailing list