Ticket #10435: canonical.php.diff
File canonical.php.diff, 639 bytes (added by , 15 years ago) |
---|
-
canonical.php
old new 39 39 function redirect_canonical($requested_url=null, $do_redirect=true) { 40 40 global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 41 41 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() ) 43 43 return; 44 44 45 45 if ( !$requested_url ) {