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
This commit is contained in:
parent
e02a26d1a5
commit
dcd129e5b8
@ -302,7 +302,7 @@
|
|||||||
deferred = jQuery.Deferred();
|
deferred = jQuery.Deferred();
|
||||||
embeddeds = parentModel.get( '_embedded' ) || {};
|
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 ) {
|
if ( ! _.isNumber( modelId ) || 0 === modelId ) {
|
||||||
deferred.reject();
|
deferred.reject();
|
||||||
return deferred;
|
return deferred;
|
||||||
@ -362,7 +362,7 @@
|
|||||||
postId = parentModel.get( 'id' );
|
postId = parentModel.get( 'id' );
|
||||||
embeddeds = parentModel.get( '_embedded' ) || {};
|
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 ) {
|
if ( ! _.isNumber( postId ) || 0 === postId ) {
|
||||||
deferred.reject();
|
deferred.reject();
|
||||||
return deferred;
|
return deferred;
|
||||||
|
Loading…
Reference in New Issue
Block a user