Make WordPress Core

Ticket #22577: 22577.diff

File 22577.diff, 521 bytes (added by koopersmith, 12 years ago)
  • wp-includes/js/media-models.js

     
    269269
    270270                        return media.post( 'save-attachment-compat', _.defaults({
    271271                                id:     this.id,
    272                                 nonce:  l10n.saveAttachmentNonce
     272                                nonce:  media.model.settings.saveAttachmentNonce
    273273                        }, data ) ).done( function( resp, status, xhr ) {
    274274                                model.set( model.parse( resp, xhr ), options );
    275275                        });