Changeset 56177 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 07/09/2023 08:15:03 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r55988 r56177 47 47 } 48 48 49 // If we're not in wp-admin and the post has been published and preview nonce 50 // is non-existent or invalid then no need for preview in query. 49 /* 50 * If we're not in wp-admin and the post has been published and preview nonce 51 * is non-existent or invalid then no need for preview in query. 52 */ 51 53 if ( is_preview() && get_query_var( 'p' ) && 'publish' === get_post_status( get_query_var( 'p' ) ) ) { 52 54 if ( ! isset( $_GET['preview_id'] ) … … 690 692 $redirect_host_low = strtolower( $redirect['host'] ); 691 693 692 // Ignore differences in host capitalization, as this can lead to infinite redirects. 693 // Only redirect no-www <=> yes-www. 694 /* 695 * Ignore differences in host capitalization, as this can lead to infinite redirects. 696 * Only redirect no-www <=> yes-www. 697 */ 694 698 if ( $original_host_low === $redirect_host_low 695 699 || ( 'www.' . $original_host_low !== $redirect_host_low
Note: See TracChangeset
for help on using the changeset viewer.