Changeset 16797 for trunk/wp-includes/canonical.php
- Timestamp:
- 12/08/2010 11:04:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r16488 r16797 35 35 * not needed or the string of the URL 36 36 */ 37 function redirect_canonical( $requested_url=null, $do_redirect=true) {37 function redirect_canonical( $requested_url = null, $do_redirect = true ) { 38 38 global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 39 39 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() ) ) 41 41 return; 42 42
Note: See TracChangeset
for help on using the changeset viewer.