[wp-trac] [WordPress Trac] #42961: REST API: Cannot pass empty object url encoded data
WordPress Trac
noreply at wordpress.org
Tue Feb 25 15:32:40 UTC 2020
#42961: REST API: Cannot pass empty object url encoded data
---------------------------------------------+-------------------------
Reporter: steffanhalv | Owner: kadamwhite
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-------------------------
Changes (by kadamwhite):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"47362" 47362]:
{{{
#!CommitTicketReference repository="" revision="47362"
REST API: Correctly infer empty objects passed via query parameters.
Permit passing an empty object as the string "?obj=". The type of the
passed empty argument is inferred from the registered schema.
Props TimothyBlynJacobs, steffanhalv, schlessera, dd32.
Fixes #42961.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42961#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list