Ticket #48025: 48025.patch
| File 48025.patch, 854 bytes (added by , 7 years ago) |
|---|
-
src/wp-includes/canonical.php
56 56 } 57 57 } 58 58 59 if ( is_trackback() || is_search() || is_admin() || is_preview() || is_robots() ||( $is_IIS && ! iis7_supports_permalinks() ) ) {59 if ( is_trackback() || is_search() || is_admin() || is_preview() || ( $is_IIS && ! iis7_supports_permalinks() ) ) { 60 60 return; 61 61 } 62 62 … … 530 530 $redirect['host'] = $original['host']; 531 531 } 532 532 533 //Even if the permalink structure ends with a slash, remove slash robots.txt. 534 if ( is_robots() ) { 535 $redirect['path'] = untrailingslashit( $redirect['path'] ); 536 } 537 533 538 $compare_original = array( $original['host'], $original['path'] ); 534 539 535 540 if ( ! empty( $original['port'] ) ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)