Changeset 55703 for trunk/src/wp-admin/includes/network.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/network.php
r55412 r55703 264 264 } 265 265 266 $is_www = ( 0 === strpos( $hostname, 'www.' ));266 $is_www = str_starts_with( $hostname, 'www.' ); 267 267 if ( $is_www ) : 268 268 ?> … … 395 395 $document_root_fix = str_replace( '\\', '/', realpath( $_SERVER['DOCUMENT_ROOT'] ) ); 396 396 $abspath_fix = str_replace( '\\', '/', ABSPATH ); 397 $home_path = 0 === strpos( $abspath_fix, $document_root_fix ) ? $document_root_fix . $base : get_home_path();397 $home_path = str_starts_with( $abspath_fix, $document_root_fix ) ? $document_root_fix . $base : get_home_path(); 398 398 $wp_siteurl_subdir = preg_replace( '#^' . preg_quote( $home_path, '#' ) . '#', '', $abspath_fix ); 399 399 $rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : '';
Note: See TracChangeset
for help on using the changeset viewer.