X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8a06f4f9392d1ac373442f82ee40428a3cb81395..672d6bc6da735e745275ef7a86341dc1178da8d2:/wp-admin/comment.php
diff --git a/wp-admin/comment.php b/wp-admin/comment.php
index d1e394ea..6499c08d 100644
--- a/wp-admin/comment.php
+++ b/wp-admin/comment.php
@@ -1,4 +1,12 @@
$msg
";
include('admin-footer.php');
die;
@@ -21,7 +34,6 @@ case 'editcomment' :
$title = __('Edit Comment');
wp_enqueue_script('comment');
-
require_once('admin-header.php');
$comment_id = absint( $_GET['c'] );
@@ -78,18 +90,18 @@ if ( 'spam' == $_GET['dt'] ) {
-
+
-
-
+
+
@@ -107,11 +119,11 @@ if ( 'spam' == $_GET['dt'] ) {
comment_author_url ) { ?>
|
-comment_author_url; ?> |
+comment_author_url; ?> |
- |
+ |
comment_content; ?> |
@@ -171,7 +183,7 @@ case 'unapprovecomment' :
if ( '' != wp_get_referer() && false == $noredir )
wp_redirect( wp_get_referer() );
else
- wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
+ wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
exit();
break;
@@ -196,7 +208,7 @@ case 'approvecomment' :
if ( '' != wp_get_referer() && false == $noredir )
wp_redirect( wp_get_referer() );
else
- wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
+ wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
exit();
break;
@@ -204,13 +216,13 @@ case 'approvecomment' :
case 'editedcomment' :
$comment_id = absint( $_POST['comment_ID'] );
- $comment_post_id = absint( $_POST['comment_post_id'] );
+ $comment_post_id = absint( $_POST['comment_post_ID'] );
check_admin_referer( 'update-comment_' . $comment_id );
edit_comment();
- $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
+ $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
wp_redirect( $location );
@@ -225,4 +237,4 @@ default:
include('admin-footer.php');
-?>
+?>
\ No newline at end of file