[wp-trac] [WordPress Trac] #39341: `wp.api.utils.decorateFromRoute` should use `_.extend` not `_.union`

WordPress Trac noreply at wordpress.org
Mon Feb 20 06:34:20 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
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40084"]:
 {{{
 #!CommitTicketReference repository="" revision="40084"
 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, adamsilverstein.
 Merges [40040] to the 4.7 branch.
 Fixes #39341.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39341#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list