Changeset 54364 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 10/01/2022 03:23:41 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r53857 r54364 501 501 $url = apply_filters( 'url_to_postid', $url ); 502 502 503 $url_host = str_replace( 'www.', '', parse_url( $url, PHP_URL_HOST ) ); 504 $home_url_host = str_replace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) ); 503 $url_host = parse_url( $url, PHP_URL_HOST ); 504 505 if ( is_string( $url_host ) ) { 506 $url_host = str_replace( 'www.', '', $url_host ); 507 } else { 508 $url_host = ''; 509 } 510 511 $home_url_host = parse_url( home_url(), PHP_URL_HOST ); 512 513 if ( is_string( $home_url_host ) ) { 514 $home_url_host = str_replace( 'www.', '', $home_url_host ); 515 } else { 516 $home_url_host = ''; 517 } 505 518 506 519 // Bail early if the URL does not belong to this site.
Note: See TracChangeset
for help on using the changeset viewer.