From 990f07563c5871c33a1a5bc6869d2785224c82ae Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 6 Mar 2008 10:09:14 +0000 Subject: [PATCH] Clean up comments links, link to more comments pages not posts. git-svn-id: https://develop.svn.wordpress.org/trunk@7169 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/comment.php | 6 +++--- wp-admin/edit-page-form.php | 2 +- wp-admin/edit-post-rows.php | 2 +- wp-admin/includes/template.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 0c17985c63..6b3438ee2b 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -169,7 +169,7 @@ case 'unapprovecomment' : if ( '' != wp_get_referer() && false == $noredir ) wp_redirect( wp_get_referer() ); else - wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '&c=1#comments' ); + wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' ); exit(); break; @@ -198,7 +198,7 @@ case 'approvecomment' : if ( '' != wp_get_referer() && false == $noredir ) wp_redirect( wp_get_referer() ); else - wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '&c=1#comments' ); + wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' ); exit(); break; @@ -212,7 +212,7 @@ case 'editedcomment' : edit_comment(); - $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_id; + $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; $location = apply_filters( 'comment_edit_redirect', $location, $comment_id ); wp_redirect( $location ); diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index b2353d43b6..9fc7896866 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -139,7 +139,7 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )