WordPress.org

Make WordPress Core

Changeset 20444 for trunk


Ignore:
Timestamp:
04/11/2012 09:18:40 PM (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/canonical.php

    r20398 r20444  
    210210
    211211        // Post Paging
    212         if ( is_singular() && get_query_var('page') ) {
     212        if ( is_singular() && ! is_front_page() && get_query_var('page') ) {
    213213            if ( !$redirect_url )
    214214                $redirect_url = get_permalink( get_queried_object_id() );
Note: See TracChangeset for help on using the changeset viewer.