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-page-form.php

    r4169 r4267  
    190190    $delete_nonce = wp_create_nonce( 'delete-page_' . $post_ID );
    191191    if ( current_user_can('delete_page', $post->ID) ) ?>
    192         <input name="deletepost" class="button" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
     192        <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
    193193<?php endif; ?>
    194194</div>
Note: See TracChangeset for help on using the changeset viewer.