Add opt-in optioon for comment hotkeys. Props nbachiyski. fixes #7643

git-svn-id: https://develop.svn.wordpress.org/trunk@9217 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-16 22:23:32 +00:00
parent 17cdcd2fdb
commit 2601e590b2
11 changed files with 24 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ require_once('admin.php');
$title = __('Edit Comments');
wp_enqueue_script( 'admin-comments' );
wp_enqueue_script( 'admin-forms' );
wp_enqueue_script( 'jquery-table-hotkeys' );
enqueue_comment_hotkeys_js();
if ( ( isset( $_POST['delete_all_spam'] ) || isset( $_POST['delete_all_spam2'] ) ) && !empty( $_POST['pagegen_timestamp'] ) ) {
check_admin_referer('bulk-spam-delete');