From 145db4bad03bb4a6068d03ed1a723868a15b56d1 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@12691 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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'] );