[wp-trac] [WordPress Trac] #39314: WP-API Backbone Client: buildModelGetter fails to reject deferred on fetch error
WordPress Trac
noreply at wordpress.org
Thu Jan 5 03:02:40 UTC 2017
#39314: WP-API Backbone Client: buildModelGetter fails to reject deferred on fetch
error
---------------------------------------------+-----------------------------
Reporter: westonruter | Owner:
Type: defect (bug) | adamsilverstein
Priority: normal | Status: closed
Component: REST API | Milestone: 4.7.1
Severity: normal | Version: 4.7
Keywords: has-patch has-unit-tests commit | Resolution: fixed
| Focuses:
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"39680"]:
{{{
#!CommitTicketReference repository="" revision="39680"
REST API: Add error handling for fetch error in `buildModelGetter` of wp-
api.js.
When a call to a model getter method fails, reject the returned deferred
object. Enables better handling of fetch errors.
Props westonruter, adamsilverstein.
Fixes #39314.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39314#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list