diff --git a/wp-admin/comment.php b/wp-admin/comment.php index eee6a12fa0..dfaf672b40 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -4,70 +4,84 @@ require_once('admin.php'); $parent_file = 'edit-comments.php'; $submenu_file = 'edit-comments.php'; -wp_reset_vars(array('action')); +wp_reset_vars( array('action') ); if ( isset( $_POST['deletecomment'] ) ) $action = 'deletecomment'; -switch($action) { -case 'editcomment': +function comment_footer_die( $msg ) { // $msg is assumed to contain HTML and be sanitized + echo "
$msg
'.__('Caution:').' '.__('You are about to mark the following comment as spam:'); ?>
- -'.__('Caution:').' '.__('You are about to delete the following comment:'); ?>
- -'.__('Caution:').' '.__('You are about to approve the following comment:'); ?>
- + + +-