WordPress.org

Make WordPress Core

Changeset 16797


Ignore:
Timestamp:
12/08/10 11:04:40 (5 years ago)
Author:
dd32
Message:

Enable canonical redirections for Permalink suporting IIS. Props peaceablewhale See #10187

File:
1 edited

Legend:

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

    r16488 r16797  
    3535 *      not needed or the string of the URL 
    3636 */ 
    37 function redirect_canonical($requested_url=null, $do_redirect=true) { 
     37function redirect_canonical( $requested_url = null, $do_redirect = true ) { 
    3838    global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 
    3939 
    40     if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() || is_robots() ) 
     40    if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || ( $is_IIS && !iis7_supports_permalinks() ) ) 
    4141        return; 
    4242 
Note: See TracChangeset for help on using the changeset viewer.