[wp-trac] [WordPress Trac] #39341: `wp.api.utils.decorateFromRoute` should use `_.extend` not `_.union`
WordPress Trac
noreply at wordpress.org
Fri Feb 3 21:45:08 UTC 2017
#39341: `wp.api.utils.decorateFromRoute` should use `_.extend` not `_.union`
-------------------------------------------------+-------------------------
Reporter: Magenta Cuda | Owner:
Type: defect (bug) | adamsilverstein
Priority: normal | Status: closed
Component: REST API | Milestone: 4.7.3
Severity: normal | Version: 4.7
Keywords: has-patch dev-feedback needs- | Resolution: fixed
testing needs-unit-tests reporter-feedback | Focuses: javascript
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"40040"]:
{{{
#!CommitTicketReference repository="" revision="40040"
REST API: JavaScript client should use `_.extend` when merging objects.
Correct an issue during the client's dynamic route discovery in
`wp.api.utils.decorateFromRoute` where `_.union` potentially failed if
used on objects.
Props ketuchetan.
Fixes #39341.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39341#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list