Changeset 56192 for trunk/src/wp-includes/ms-load.php
- Timestamp:
- 07/10/2023 10:46:22 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-load.php
r55990 r56192 227 227 */ 228 228 229 // Either www or non-www is supported, not both. If a www domain is requested, 230 // query for both to provide the proper redirect. 229 /* 230 * Either www or non-www is supported, not both. If a www domain is requested, 231 * query for both to provide the proper redirect. 232 */ 231 233 $domains = array( $domain ); 232 234 if ( str_starts_with( $domain, 'www.' ) ) { … … 311 313 $current_blog = get_site_by_path( $domain, $path ); 312 314 } elseif ( '/' !== $current_site->path && 0 === strcasecmp( $current_site->domain, $domain ) && 0 === stripos( $path, $current_site->path ) ) { 313 // If the current network has a path and also matches the domain and path of the request, 314 // we need to look for a site using the first path segment following the network's path. 315 /* 316 * If the current network has a path and also matches the domain and path of the request, 317 * we need to look for a site using the first path segment following the network's path. 318 */ 315 319 $current_blog = get_site_by_path( $domain, $path, 1 + count( explode( '/', trim( $current_site->path, '/' ) ) ) ); 316 320 } else {
Note: See TracChangeset
for help on using the changeset viewer.