WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/14/2010 08:31:33 AM (9 years ago)
Author:
dd32
Message:

Fix fatal error on IIS after r16797. props peaceablewhale. Limit variable string searching when possible. See #10187

File:
1 edited

Legend:

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

    r16849 r16904  
    3636 */
    3737function redirect_canonical( $requested_url = null, $do_redirect = true ) {
    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 && !iis7_supports_permalinks() ) )
     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() ) )
    4141        return;
    4242
Note: See TracChangeset for help on using the changeset viewer.