From 528b340dc9bb50ade823dd2314a524c3a7025486 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@6298 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 fc46917c25..a2e11dc03e 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 ) ); ?> -

      +

      -

      +

            -

      +