WordPress.org

Make WordPress Core

Ticket #7879: 7879_patch.patch

File 7879_patch.patch, 741 bytes (added by mgriepentrog, 5 years ago)
  • wp-admin/async-upload.php

     
    3030if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) { 
    3131        if ( 2 == $_REQUEST['fetch'] ) { 
    3232                add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2); 
    33                 echo get_media_item($id, array( 'send' => false, 'delete' => false )); 
     33                echo get_media_item($id, array( 'send' => false, 'delete' => true )); 
    3434        } else { 
    3535                add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2); 
    3636                echo get_media_item($id);