Docs: Fix typo in a comment in js/media/models/attachment.js
.
Props wptoolsdev. Fixes #49303. git-svn-id: https://develop.svn.wordpress.org/trunk@47117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1160c97303
commit
c1abc8203a
@ -39,7 +39,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
|
||||
|
||||
// Overload the `update` request so properties can be saved.
|
||||
} else if ( 'update' === method ) {
|
||||
// If we do not have the necessary nonce, fail immeditately.
|
||||
// If we do not have the necessary nonce, fail immediately.
|
||||
if ( ! this.get('nonces') || ! this.get('nonces').update ) {
|
||||
return $.Deferred().rejectWith( this ).promise();
|
||||
}
|
||||
@ -123,7 +123,7 @@ Attachment = Backbone.Model.extend(/** @lends wp.media.model.Attachment.prototyp
|
||||
saveCompat: function( data, options ) {
|
||||
var model = this;
|
||||
|
||||
// If we do not have the necessary nonce, fail immeditately.
|
||||
// If we do not have the necessary nonce, fail immediately.
|
||||
if ( ! this.get('nonces') || ! this.get('nonces').update ) {
|
||||
return $.Deferred().rejectWith( this ).promise();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user