From e02a26d1a55aaba439afe262135c8f65cea9c766 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 23 Oct 2016 15:51:07 +0000 Subject: [PATCH] REST API: Correct a documentation typo. Props Zuige Fixes #38458 git-svn-id: https://develop.svn.wordpress.org/trunk@38878 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/wp-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/wp-api.js b/src/wp-includes/js/wp-api.js index 0bb5d2e205..17d72af68e 100644 --- a/src/wp-includes/js/wp-api.js +++ b/src/wp-includes/js/wp-api.js @@ -179,7 +179,7 @@ // Add any non empty args, merging them into the args object. if ( ! _.isEmpty( routeEndpoint.args ) ) { - // Set as defauls if no args yet. + // Set as default if no args yet. if ( _.isEmpty( modelInstance.prototype.args ) ) { modelInstance.prototype.args = routeEndpoint.args; } else { @@ -196,7 +196,7 @@ // Add any non empty args, merging them into the defaults object. if ( ! _.isEmpty( routeEndpoint.args ) ) { - // Set as defauls if no defaults yet. + // Set as default if no defaults yet. if ( _.isEmpty( modelInstance.prototype.options ) ) { modelInstance.prototype.options = routeEndpoint.args; } else {