Make WordPress Core

Ticket #51420: 51420.patch

File 51420.patch, 2.0 KB (added by mukesh27, 4 years ago)

Initial patch.

  • src/js/_enqueues/wp/api.js

     
    363363                         * @param {string} parentModel      The parent model.
    364364                         * @param {number} modelId          The model ID if the object to request
    365365                         * @param {string} modelName        The model name to use when constructing the model.
    366                          * @param {string} embedSourcePoint Where to check the embedds object for _embed data.
     366                         * @param {string} embedSourcePoint Where to check the embedded object for _embed data.
    367367                         * @param {string} embedCheckField  Which model field to check to see if the model has data.
    368368                         *
    369369                         * @return {Deferred.promise}        A promise which resolves to the constructed model.
     
    416416                         *
    417417                         * @param {string} parentModel      The parent model.
    418418                         * @param {string} collectionName   The name to use when constructing the collection.
    419                          * @param {string} embedSourcePoint Where to check the embedds object for _embed data.
    420                          * @param {string} embedIndex       An addiitonal optional index for the _embed data.
     419                         * @param {string} embedSourcePoint Where to check the embedded object for _embed data.
     420                         * @param {string} embedIndex       An additional optional index for the _embed data.
    421421                         *
    422422                         * @return {Deferred.promise} A promise which resolves to the constructed collection.
    423423                         */
     
    425425                                /**
    426426                                 * Returns a promise that resolves to the requested collection
    427427                                 *
    428                                  * Uses the embedded data if available, otherwises fetches the
     428                                 * Uses the embedded data if available, otherwise fetches the
    429429                                 * data from the server.
    430430                                 *
    431431                                 * @return {Deferred.promise} promise Resolves to a wp.api.collections[ collectionName ]
     
    10571057                                        };
    10581058                                }
    10591059
    1060                                 // Continue by calling Bacckbone's sync.
     1060                                // Continue by calling Backbone's sync.
    10611061                                return Backbone.sync( method, model, options );
    10621062                        },
    10631063