WordPress.org

Make WordPress Core

Changeset 22842


Ignore:
Timestamp:
11/26/12 15:07:36 (17 months ago)
Author:
ryan
Message:

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

Props koopersmith
fixes #22577

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-models.js

    r22816 r22842  
    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 ); 
Note: See TracChangeset for help on using the changeset viewer.