Ticket #19785: 19785.diff
File 19785.diff, 1.3 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/media.php
1175 1175 $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Delete Permanently' ) . '</a>'; 1176 1176 } elseif ( !MEDIA_TRASH ) { 1177 1177 $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a> 1178 <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'> " . sprintf( __( 'You are about to delete <strong>%s</strong>.' ), $filename ) . "1178 <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'><p>" . sprintf( __( 'You are about to delete <strong>%s</strong>.' ), $filename ) . "</p> 1179 1179 <a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a> 1180 1180 <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a> 1181 1181 </div>";