Make WordPress Core


Ignore:
Timestamp:
01/13/2016 08:48:14 AM (9 years ago)
Author:
dd32
Message:

Canonical / Query: After [36280] remove the unit tests which are no longer supported for 4.4.
This also removes the is_feed() code to avoid confusion - only pages & embeds will be redirected.
See #35344

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/src/wp-includes/query.php

    r36280 r36281  
    50285028        $link = get_permalink( $id );
    50295029
    5030         if ( is_feed() ) {
    5031             $link = user_trailingslashit( trailingslashit( $link ) . 'feed' );
    5032         } elseif ( isset( $GLOBALS['wp_query']->query_vars['paged'] ) && $GLOBALS['wp_query']->query_vars['paged'] > 1 ) {
     5030        if ( isset( $GLOBALS['wp_query']->query_vars['paged'] ) && $GLOBALS['wp_query']->query_vars['paged'] > 1 ) {
    50335031            $link = user_trailingslashit( trailingslashit( $link ) . 'page/' . $GLOBALS['wp_query']->query_vars['paged'] );
    50345032        } elseif( is_embed() ) {
Note: See TracChangeset for help on using the changeset viewer.