Make WordPress Core


Ignore:
Timestamp:
10/02/2006 06:34:08 PM (17 years ago)
Author:
ryan
Message:

Add and use delete class on delete buttons. Props mdawaffe. fixes #3187

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r4162 r4267  
    6868    <tr>
    6969        <th scope="row" valign="top"><?php _e('Delete'); $delete_nonce = wp_create_nonce( 'delete-comment_' . $comment->comment_ID ); ?>:</th>
    70         <td><input name="deletecomment" class="button" type="submit" id="deletecomment" tabindex="10" value="<?php _e('Delete this comment') ?>" <?php echo "onclick=\"if ( confirm('" . __("You are about to delete this comment \\n  \'Cancel\' to stop, \'OK\' to delete.") . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true; } return false;\""; ?> />
     70        <td><input name="deletecomment" class="button delete" type="submit" id="deletecomment" tabindex="10" value="<?php _e('Delete this comment') ?>" <?php echo "onclick=\"if ( confirm('" . __("You are about to delete this comment \\n  \'Cancel\' to stop, \'OK\' to delete.") . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true; } return false;\""; ?> />
    7171        <input type="hidden" name="comment" value="<?php echo $comment->comment_ID ?>" />
    7272        <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
Note: See TracChangeset for help on using the changeset viewer.