Changeset 63307 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 08/16/2026 04:55:59 PM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/rewrite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r61444 r63307 503 503 504 504 if ( is_string( $url_host ) ) { 505 $url_host = str_replace( 'www.', '', $url_host ); 505 // Only a leading 'www.' is optional. Removing it anywhere else would match a different host. 506 $url_host = preg_replace( '|^www\.|', '', $url_host ); 506 507 } else { 507 508 $url_host = ''; … … 511 512 512 513 if ( is_string( $home_url_host ) ) { 513 $home_url_host = str_replace( 'www.', '', $home_url_host );514 $home_url_host = preg_replace( '|^www\.|', '', $home_url_host ); 514 515 } else { 515 516 $home_url_host = '';
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)