From 24f0b83cae4108fcca1c7960b71445b684ee18f2 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 31 Oct 2007 01:37:58 +0000 Subject: [PATCH] Fix comment delete links and ajax moderation. Props mdawaffe. fixes #5288 git-svn-id: http://svn.automattic.com/wordpress/trunk@6298 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/moderation.php | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/wp-admin/moderation.php b/wp-admin/moderation.php index fc46917c2..a2e11dc03 100644 --- a/wp-admin/moderation.php +++ b/wp-admin/moderation.php @@ -147,7 +147,7 @@ $comments = array_slice( $comments, $start, $stop );
-
    +
      comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); + $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) ); + $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); + ?>
    1. @@ -170,20 +175,29 @@ $comments = array_slice( $comments, $start, $stop );

      -

      - — - [ | - ', theCommentList );"> ] — +

      + + — + [ + + | + + | + + | + + ] + — comment_post_ID ) ); ?> -

      +

      -

      +

            -

      +