From 7263a46dae007b8a2c0218341546c6f98707b13f Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 10 Jan 2010 18:56:03 +0000 Subject: [PATCH] Do proper canonical redirect for ?paged=1 or /page/1/. fixes #11696 git-svn-id: https://develop.svn.wordpress.org/trunk@12691 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/canonical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index e8d7e9e5d5..57c3751693 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -162,7 +162,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) { if ( $paged > 1 && !is_single() ) { $addl_path = ( !empty( $addl_path ) ? trailingslashit($addl_path) : '' ) . user_trailingslashit("page/$paged", 'paged'); } elseif ( !is_single() ) { - $addl_path = ( !empty( $addl_path ) ? trailingslashit($addl_path) : '' ) . user_trailingslashit($paged_redirect['path'], 'paged'); + $addl_path = !empty( $addl_path ) ? trailingslashit($addl_path) : ''; } } elseif ( $paged > 1 ) { $redirect['query'] = add_query_arg( 'paged', $paged, $redirect['query'] );