Ticket #19785: delete-confirm-2.patch
| File delete-confirm-2.patch, 1.8 KB (added by , 14 years ago) |
|---|
-
wp-admin/css/media.dev.css
163 163 margin: 5px 0; 164 164 } 165 165 166 #media-upload .del-attachment .button-delete { 167 margin-top: 7px; 168 } 169 166 170 .menu_order { 167 171 float: right; 168 172 font-size: 11px; -
wp-admin/includes/media.php
1148 1148 } elseif ( !MEDIA_TRASH ) { 1149 1149 $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a> 1150 1150 <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&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&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> 1153 1153 </div>"; 1154 1154 } else { 1155 1155 $delete = "<a href='" . wp_nonce_url( "post.php?action=trash&post=$attachment_id", 'trash-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>