Changeset 21207 for trunk/wp-includes/canonical.php
- Timestamp:
- 07/05/2012 01:23:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r21112 r21207 19 19 * 20 20 * Prevents redirection for feeds, trackbacks, searches, comment popup, and 21 * admin URLs. Does not redirect on IIS, page/post previews, and on form data. 21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7, 22 * page/post previews, WP admin, Trackbacks, robots.txt, searches, or on POST 23 * requests. 22 24 * 23 25 * Will also attempt to find the correct link when a user enters a URL that does … … 27 29 * @since 2.3.0 28 30 * @uses $wp_rewrite 29 * @uses $is_ IIS31 * @uses $is_iis7 30 32 * 31 33 * @param string $requested_url Optional. The URL that was requested, used to … … 36 38 */ 37 39 function 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)40 global $wp_rewrite, $is_iis7, $wp_query, $wpdb; 41 42 if ( is_trackback() || is_search() || is_comments_popup() || is_admin() || !empty($_POST) || is_preview() || is_robots() || ( $is_iis7 && !iis7_supports_permalinks() ) ) 41 43 return; 42 44
Note: See TracChangeset
for help on using the changeset viewer.