[wp-trac] [WordPress Trac] #40614: REST API: String argument for rest_do_request/rest_ensure_request does not work as expected.
WordPress Trac
noreply at wordpress.org
Thu Sep 12 21:46:52 UTC 2019
#40614: REST API: String argument for rest_do_request/rest_ensure_request does not
work as expected.
----------------------------------------+-------------------------
Reporter: TimothyBlynJacobs | Owner: kadamwhite
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+-------------------------
Changes (by kadamwhite):
* owner: (none) => kadamwhite
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"46099" 46099]:
{{{
#!CommitTicketReference repository="" revision="46099"
REST API: Accept string path in rest_ensure_request.
Update `rest_ensure_request()` to accept a string path, permitting a
string path to be passed to `rest_do_request()` as is indicated
(previously inaccurately) in that method's PHPDoc.
Props TimothyBlynJacobs, kadamwhite.
Fixes #40614.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40614#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list