WordPress.org

Make WordPress Core

Changeset 17493


Ignore:
Timestamp:
03/02/11 15:33:42 (3 years ago)
Author:
ryan
Message:

Do not perform canonical redirects for IISto avoid redirect loops on some IIS setups. fixes #16639 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/canonical.php

    r17031 r17493  
    3636 */ 
    3737function redirect_canonical( $requested_url = null, $do_redirect = true ) { 
    38     global $wp_rewrite, $is_iis7, $wp_query, $wpdb; 
    39  
    40     if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || ( $is_iis7 && !iis7_supports_permalinks() ) ) 
     38    global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 
     39 
     40    if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || $is_IIS ) 
    4141        return; 
    4242 
Note: See TracChangeset for help on using the changeset viewer.