Don't do a canonical redirect for singular paged pages when on the front-page. This was breaking pagination on sites with a static home page. Props batmoo. see #20385
git-svn-id: http://svn.automattic.com/wordpress/trunk@20444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
be5802b0f1
commit
1b65e28f8f
|
@ -209,7 +209,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
|||
}
|
||||
|
||||
// Post Paging
|
||||
if ( is_singular() && get_query_var('page') ) {
|
||||
if ( is_singular() && ! is_front_page() && get_query_var('page') ) {
|
||||
if ( !$redirect_url )
|
||||
$redirect_url = get_permalink( get_queried_object_id() );
|
||||
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( get_query_var( 'page' ), 'single_paged' );
|
||||
|
|
Loading…
Reference in New Issue