Correctly access the nonce to save attachment fields. Fixes firing attachment_fields_to_save.

Props koopersmith
fixes #22577


git-svn-id: https://develop.svn.wordpress.org/trunk@22842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-11-26 15:07:36 +00:00
parent 65f7674216
commit 1368fae5b6
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ window.wp = window.wp || {};
return media.post( 'save-attachment-compat', _.defaults({
id: this.id,
nonce: l10n.saveAttachmentNonce
nonce: media.model.settings.saveAttachmentNonce
}, data ) ).done( function( resp, status, xhr ) {
model.set( model.parse( resp, xhr ), options );
});