Make WordPress Core

Ticket #39559: 39559.diff

File 39559.diff, 494 bytes (added by adamsilverstein, 9 years ago)
  • js/load.js

    diff --git a/js/load.js b/js/load.js
    index 5604999..1202965 100644
    a b  
    202202                                                // Include the array of route methods for easy reference.
    203203                                                methods: modelRoute.route.methods,
    204204
    205                                                 initialize: function() {
     205                                                initialize: function( attributes, options ) {
     206                                                        wp.api.WPApiBaseModel.prototype.initialize.call( this, attributes, options );
    206207
    207208                                                        /**
    208209                                                         * Posts and pages support trashing, other types don't support a trash