Changeset 55988 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 06/22/2023 02:34:56 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r55346 r55988 390 390 } 391 391 } 392 } elseif ( is_single() && str pos( $wp_rewrite->permalink_structure, '%category%' ) !== false) {392 } elseif ( is_single() && str_contains( $wp_rewrite->permalink_structure, '%category%' ) ) { 393 393 $category_name = get_query_var( 'category_name' ); 394 394 … … 519 519 if ( ! empty( $addl_path ) 520 520 && $wp_rewrite->using_index_permalinks() 521 && strpos( $redirect['path'], '/' . $wp_rewrite->index . '/' ) === false521 && ! str_contains( $redirect['path'], '/' . $wp_rewrite->index . '/' ) 522 522 ) { 523 523 $redirect['path'] = trailingslashit( $redirect['path'] ) . $wp_rewrite->index . '/'; … … 738 738 739 739 // Hex-encoded octets are case-insensitive. 740 if ( false !== strpos( $requested_url, '%' ) ) {740 if ( str_contains( $requested_url, '%' ) ) { 741 741 if ( ! function_exists( 'lowercase_octets' ) ) { 742 742 /**
Note: See TracChangeset
for help on using the changeset viewer.