WordPress.org

Make WordPress Core

Changeset 20309


Ignore:
Timestamp:
03/28/12 20:28:34 (3 years ago)
Author:
markjaquith
Message:

Wrap attachment delete link in <p> for semantics and alignment. props aaroncampbell, lancewillett. fixes #19785

File:
1 edited

Legend:

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

    r20282 r20309  
    11761176        } elseif ( !MEDIA_TRASH ) { 
    11771177            $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> 
    11791179             <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> 
    11801180             <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a> 
Note: See TracChangeset for help on using the changeset viewer.