REST-API Json decode error will not give back an error
|Reported by:||danielhuesken||Owned by:||rmccue|
If you send a Request to the Rest API with a defect json in body than it will not return a error. That is not so good, because you get back a response that suggest all is ok.
The problem is located at: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/class-wp-rest-request.php#L673
The 'return;' let it looks like all is ok and the answere will be the normel responce.
Change History (7)
- Milestone changed from Awaiting Review to 4.7
- Owner set to rmccue
- Status changed from new to assigned
- Type changed from enhancement to defect (bug)