Changeset 9214
- Timestamp:
- 10/16/2008 09:14:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r9203 r9214 200 200 201 201 // trailing slashes 202 if ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() && !is_404() && (!is_ home() || ( is_home() && (get_query_var('paged') > 1) ) ) ) {202 if ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() && !is_404() && (!is_front_page() || ( is_front_page() && (get_query_var('paged') > 1) ) ) ) { 203 203 $user_ts_type = ''; 204 204 if ( get_query_var('paged') > 0 ) { 205 205 $user_ts_type = 'paged'; 206 206 } else { 207 foreach ( array('single', 'category', 'page', 'day', 'month', 'year' ) as $type ) {207 foreach ( array('single', 'category', 'page', 'day', 'month', 'year', 'home') as $type ) { 208 208 $func = 'is_' . $type; 209 209 if ( call_user_func($func) ) { … … 214 214 } 215 215 $redirect['path'] = user_trailingslashit($redirect['path'], $user_ts_type); 216 } elseif ( is_ home() ) {216 } elseif ( is_front_page() ) { 217 217 $redirect['path'] = trailingslashit($redirect['path']); 218 218 } 219 219 220 // Always trailing slash the 'home'URL221 if ( $redirect['path'] == $user_home['path'])220 // Always trailing slash the Front Page URL 221 if ( trailingslashit( $redirect['path'] ) == trailingslashit( $user_home['path'] ) ) 222 222 $redirect['path'] = trailingslashit($redirect['path']); 223 223
Note: See TracChangeset
for help on using the changeset viewer.