Changeset 55990 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 06/22/2023 02:55:47 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r55988 r55990 377 377 378 378 if ( null !== $sitename ) { 379 if ( 'www.' === substr( $sitename, 0, 4) ) {379 if ( str_starts_with( $sitename, 'www.' ) ) { 380 380 $sitename = substr( $sitename, 4 ); 381 381 } … … 1558 1558 $location = wp_sanitize_redirect( trim( $location, " \t\n\r\0\x08\x0B" ) ); 1559 1559 // Browsers will assume 'http' is your protocol, and will obey a redirect to a URL starting with '//'. 1560 if ( '//' === substr( $location, 0, 2) ) {1560 if ( str_starts_with( $location, '//' ) ) { 1561 1561 $location = 'http:' . $location; 1562 1562 }
Note: See TracChangeset
for help on using the changeset viewer.