WordPress.org

Make WordPress Core

Ticket #10435: canonical.php.diff

File canonical.php.diff, 639 bytes (added by sirzooro, 9 years ago)
  • canonical.php

    old new  
    3939function redirect_canonical($requested_url=null, $do_redirect=true) {
    4040        global $wp_rewrite, $is_IIS, $wp_query, $wpdb;
    4141
    42         if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() || is_robots() )
     42        if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || ( $is_IIS && !iis7_supports_permalinks() ) || ( isset($_POST) && count($_POST) ) || is_preview() || is_robots() )
    4343                return;
    4444
    4545        if ( !$requested_url ) {