WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/10/2010 06:56:03 PM (10 years ago)
Author:
markjaquith
Message:

Do proper canonical redirect for ?paged=1 or /page/1/. fixes #11696

File:
1 edited

Legend:

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

    r12598 r12691  
    163163                        $addl_path = ( !empty( $addl_path ) ? trailingslashit($addl_path) : '' ) . user_trailingslashit("page/$paged", 'paged');
    164164                    } elseif ( !is_single() ) {
    165                         $addl_path = ( !empty( $addl_path ) ? trailingslashit($addl_path) : '' ) . user_trailingslashit($paged_redirect['path'], 'paged');
     165                        $addl_path = !empty( $addl_path ) ? trailingslashit($addl_path) : '';
    166166                    }
    167167                } elseif ( $paged > 1 ) {
Note: See TracChangeset for help on using the changeset viewer.