Index: wp-includes/canonical.php
===================================================================
--- wp-includes/canonical.php (revision 9339)
+++ wp-includes/canonical.php (working copy)
@@ -249,20 +249,20 @@
if ( $compare_original !== $compare_redirect ) {
$redirect_url = $redirect['scheme'] . '://' . $redirect['host'];
if ( !empty($redirect['port']) )
- $redirect_url .= ':' . $redirect['port'];
+ $redirect_url .= ':' . $redirect['port'];
$redirect_url .= $redirect['path'];
if ( !empty($redirect['query']) )
$redirect_url .= '?' . $redirect['query'];
}
if ( !$redirect_url || $redirect_url == $requested_url )
- return false;
+ return false;
// Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE
$redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url);
if ( !$redirect_url || $redirect_url == $requested_url ) // yes, again -- in case the filter aborted the request
- return false;
+ return false;
if ( $do_redirect ) {
// protect against chained redirects
Index: wp-includes/comment-template.php
===================================================================
--- wp-includes/comment-template.php (revision 9339)
+++ wp-includes/comment-template.php (working copy)
@@ -412,7 +412,7 @@
*/
function get_comment_link($comment = null) {
$comment = get_comment($comment);
- return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;
+ return add_query_arg( 'gotocom', $comment->comment_ID, get_permalink( $comment->comment_post_ID ) );
}
/**
@@ -1085,7 +1085,7 @@
-