Changeset 48873 for branches/5.5/src/wp-includes/canonical.php
- Timestamp:
- 08/27/2020 01:35:31 AM (6 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/canonical.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-includes/canonical.php
r48586 r48873 411 411 } 412 412 413 // Paging and feeds. 414 if ( get_query_var( 'paged' ) || is_feed() || get_query_var( 'cpage' ) ) { 413 if ( get_query_var( 'sitemap' ) ) { 414 $redirect_url = get_sitemap_url( get_query_var( 'sitemap' ), get_query_var( 'sitemap-subtype' ), get_query_var( 'paged' ) ); 415 $redirect['query'] = remove_query_arg( array( 'sitemap', 'sitemap-subtype', 'paged' ), $redirect['query'] ); 416 } elseif ( get_query_var( 'paged' ) || is_feed() || get_query_var( 'cpage' ) ) { 417 // Paging and feeds. 415 418 $paged = get_query_var( 'paged' ); 416 419 $feed = get_query_var( 'feed' ); … … 507 510 if ( ! empty( $addl_path ) ) { 508 511 $redirect['path'] = trailingslashit( $redirect['path'] ) . $addl_path; 509 }510 511 // Remove trailing slash for sitemaps requests.512 if ( ! empty( get_query_var( 'sitemap' ) ) ) {513 $redirect['path'] = untrailingslashit( $redirect['path'] );514 512 } 515 513
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)