Make WordPress Core


Ignore:
Timestamp:
11/27/2012 03:50:59 PM (12 years ago)
Author:
ryan
Message:

Add a delete link to the media modal.

Props merty, nacin, koopersmith
fixes #22524

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r22847 r22869  
    18441844        wp_send_json_error();
    18451845
    1846     check_ajax_referer( 'save-attachment', 'nonce' );
     1846    check_ajax_referer( 'update-post_' . $id, 'nonce' );
    18471847
    18481848    if ( ! current_user_can( 'edit_post', $id ) )
     
    18901890    $attachment_data = $_REQUEST['attachments'][ $id ];
    18911891
    1892     check_ajax_referer( 'save-attachment', 'nonce' );
     1892    check_ajax_referer( 'update-post_' . $id, 'nonce' );
    18931893
    18941894    if ( ! current_user_can( 'edit_post', $id ) )
Note: See TracChangeset for help on using the changeset viewer.