Changeset 9831 for trunk/wp-includes/canonical.php
- Timestamp:
- 11/21/2008 05:33:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r9697 r9831 166 166 } 167 167 168 $paged_redirect['path'] = trailingslashit( preg_replace('|/index.php/?$|', '/', $paged_redirect['path']) ); // strip off trailing /index.php/168 $paged_redirect['path'] = user_trailingslashit( preg_replace('|/index.php/?$|', '/', $paged_redirect['path']) ); // strip off trailing /index.php/ 169 169 if ( !empty( $addl_path ) && $wp_rewrite->using_index_permalinks() && strpos($paged_redirect['path'], '/index.php/') === false ) 170 $paged_redirect['path'] .= 'index.php/'; 171 $paged_redirect['path'] .= $addl_path; 170 $paged_redirect['path'] = trailingslashit($paged_redirect['path']) . 'index.php/'; 171 if ( !empty( $addl_path ) ) 172 $paged_redirect['path'] = trailingslashit($paged_redirect['path']) . $addl_path; 172 173 $redirect_url = $paged_redirect['scheme'] . '://' . $paged_redirect['host'] . $paged_redirect['path']; 173 174 $redirect['path'] = $paged_redirect['path'];
Note: See TracChangeset
for help on using the changeset viewer.