WordPress.org

Make WordPress Core

Ticket #19785: delete-confirm-2.patch

File delete-confirm-2.patch, 1.8 KB (added by JarretC, 6 years ago)
  • wp-admin/css/media.dev.css

     
    163163        margin: 5px 0;
    164164}
    165165
     166#media-upload .del-attachment .button-delete {
     167        margin-top: 7px;
     168}
     169
    166170.menu_order {
    167171        float: right;
    168172        font-size: 11px;
  • wp-admin/includes/media.php

     
    11481148                } elseif ( !MEDIA_TRASH ) {
    11491149                        $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
    11501150                         <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" . sprintf( __( 'You are about to delete <strong>%s</strong>.' ), $filename ) . "
    1151                          <a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
    1152                          <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a>
     1151                         <p class='button-delete'><a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
     1152                         <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a></p>
    11531153                         </div>";
    11541154                } else {
    11551155                        $delete = "<a href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>