mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Correctly access the nonce to save attachment fields. Fixes firing attachment_fields_to_save.
Props koopersmith fixes #22577 git-svn-id: http://core.svn.wordpress.org/trunk@22842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7469f91bc7
commit
2105efa5bf
@ -269,7 +269,7 @@ window.wp = window.wp || {};
|
|||||||
|
|
||||||
return media.post( 'save-attachment-compat', _.defaults({
|
return media.post( 'save-attachment-compat', _.defaults({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
nonce: l10n.saveAttachmentNonce
|
nonce: media.model.settings.saveAttachmentNonce
|
||||||
}, data ) ).done( function( resp, status, xhr ) {
|
}, data ) ).done( function( resp, status, xhr ) {
|
||||||
model.set( model.parse( resp, xhr ), options );
|
model.set( model.parse( resp, xhr ), options );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user