Changeset 30090 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 10/29/2014 06:36:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r29901 r30090 361 361 unset($redirect['port']); 362 362 363 if ( ! empty( $user_home['scheme'] ) && $user_home['scheme'] === 'https' ) {364 $redirect['scheme'] = 'https';365 }366 367 363 // trailing /index.php 368 364 $redirect['path'] = preg_replace('|/' . preg_quote( $wp_rewrite->index, '|' ) . '/*?$|', '/', $redirect['path']); … … 422 418 $redirect['host'] = $original['host']; 423 419 424 $compare_original = array( $original[' scheme'], $original['host'], $original['path'] );420 $compare_original = array( $original['host'], $original['path'] ); 425 421 426 422 if ( !empty( $original['port'] ) ) … … 430 426 $compare_original[] = $original['query']; 431 427 432 $compare_redirect = array( $redirect[' scheme'], $redirect['host'], $redirect['path'] );428 $compare_redirect = array( $redirect['host'], $redirect['path'] ); 433 429 434 430 if ( !empty( $redirect['port'] ) )
Note: See TracChangeset
for help on using the changeset viewer.