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
This commit is contained in:
parent
20c7f2963e
commit
7263a46dae
@ -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'] );
|
||||
|
Loading…
Reference in New Issue
Block a user