WordPress.org

Make WordPress Core

Ticket #16639: 16639.diff

File 16639.diff, 818 bytes (added by ryan, 7 years ago)
  • wp-includes/canonical.php

     
    3535 *              not needed or the string of the URL
    3636 */
    3737function redirect_canonical( $requested_url = null, $do_redirect = true ) {
    38         global $wp_rewrite, $is_iis7, $wp_query, $wpdb;
     38        global $wp_rewrite, $is_IIS, $wp_query, $wpdb;
    3939
    40         if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || ( $is_iis7 && !iis7_supports_permalinks() ) )
     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
    4343        if ( !$requested_url ) {