From dcd129e5b85372f51f8ca2235f4942da44b8d7cd Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 23 Oct 2016 15:55:53 +0000 Subject: [PATCH] REST API: Correct a documentation typo. Props Zuige Fixes #38458 See #38456 git-svn-id: https://develop.svn.wordpress.org/trunk@38879 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 17d72af68e..3961a5343a 100644 --- a/src/wp-includes/js/wp-api.js +++ b/src/wp-includes/js/wp-api.js @@ -302,7 +302,7 @@ deferred = jQuery.Deferred(); embeddeds = parentModel.get( '_embedded' ) || {}; - // Verify that we have a valied object id. + // Verify that we have a valid object id. if ( ! _.isNumber( modelId ) || 0 === modelId ) { deferred.reject(); return deferred; @@ -362,7 +362,7 @@ postId = parentModel.get( 'id' ); embeddeds = parentModel.get( '_embedded' ) || {}; - // Verify that we have a valied post id. + // Verify that we have a valid post id. if ( ! _.isNumber( postId ) || 0 === postId ) { deferred.reject(); return deferred;