Changeset 48153
- Timestamp:
- 06/23/2020 11:42:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r48072 r48153 59 59 60 60 if ( is_admin() || is_search() || is_preview() || is_trackback() 61 || is_robots() || is_favicon() 62 || ( $is_IIS && ! iis7_supports_permalinks() ) 61 || is_favicon() || ( $is_IIS && ! iis7_supports_permalinks() ) 63 62 ) { 64 63 return; … … 684 683 } 685 684 685 // Even if the permalink structure ends with a slash, remove slash robots.txt. 686 if ( is_robots() ) { 687 $redirect['path'] = untrailingslashit( $redirect['path'] ); 688 } 689 686 690 $compare_original = array( $original['host'], $original['path'] ); 687 691
Note: See TracChangeset
for help on using the changeset viewer.