Ticket #39341: 39341.diff
File 39341.diff, 858 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/wp-api.js
185 185 } else { 186 186 187 187 // We already have args, merge these new args in. 188 modelInstance.prototype.args = _. union( routeEndpoint.args, modelInstance.prototype.defaults );188 modelInstance.prototype.args = _.extend( modelInstance.prototype.args, routeEndpoint.args ); 189 189 } 190 190 } 191 191 } else { … … 202 202 } else { 203 203 204 204 // We already have options, merge these new args in. 205 modelInstance.prototype.options = _. union( routeEndpoint.args, modelInstance.prototype.options );205 modelInstance.prototype.options = _.extend( modelInstance.prototype.options, routeEndpoint.args ); 206 206 } 207 207 } 208 208