Make WordPress Core

Changeset 38878


Ignore:
Timestamp:
10/23/2016 03:51:07 PM (8 years ago)
Author:
johnbillion
Message:

REST API: Correct a documentation typo.

Props Zuige
Fixes #38458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-api.js

    r38832 r38878  
    180180                if ( ! _.isEmpty( routeEndpoint.args ) ) {
    181181
    182                     // Set as defauls if no args yet.
     182                    // Set as default if no args yet.
    183183                    if ( _.isEmpty( modelInstance.prototype.args ) ) {
    184184                        modelInstance.prototype.args = routeEndpoint.args;
     
    197197                    if ( ! _.isEmpty( routeEndpoint.args ) ) {
    198198
    199                         // Set as defauls if no defaults yet.
     199                        // Set as default if no defaults yet.
    200200                        if ( _.isEmpty( modelInstance.prototype.options ) ) {
    201201                            modelInstance.prototype.options = routeEndpoint.args;
Note: See TracChangeset for help on using the changeset viewer.