Make WordPress Core

Changeset 17492


Ignore:
Timestamp:
03/02/2011 03:33:11 PM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r17031 r17492  
    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.