diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index fa5e8b1013..4566e30c3b 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -6,23 +6,6 @@ $parent_file = 'edit-comments.php'; wp_enqueue_script( 'admin-comments' ); wp_enqueue_script('admin-forms'); -require_once('admin-header.php'); -if (empty($_GET['mode'])) $mode = 'view'; -else $mode = attribute_escape($_GET['mode']); -?> -
'; if ( !empty( $_POST['spam_button'] ) ) { printf(__ngettext('%s comment marked as spam.', '%s comments marked as spam.', $i), $i); @@ -46,8 +30,54 @@ if ( !empty( $_POST['delete_comments'] ) ) : printf(__ngettext('%s comment deleted.', '%s comments deleted.', $i), $i); } echo '
- | ' . __('Name') . ' | -' . __('E-mail') . ' | -' . __('IP') . ' | -' . __('Comment Excerpt') . ' | -' . __('Actions') . ' | ++ | + | + | |||
---|---|---|---|---|---|---|---|---|---|---|---|
comment_post_ID) ) { ?> | -- | - | - | - | - - - + | comment_post_ID) ) { ?> | +
+ + + | + + comment_author_email) ): ?> + | + + + + |
- comment_post_ID) ) { - echo "" . __('Edit') . ""; } ?> | -comment_post_ID) ) { + | + | + comment_post_ID) ) { + echo "" . __('Edit') . " | "; $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); echo "" . __('Delete') . " "; - } ?> | + } + ?> +
'); return false } return confirm('')" /> - '); return false } return confirm('')" />
- +$page_links"; - ?> - +