wp-includes/class-wp-network.php 1 location
|
@@ 320-322 (lines=3) @@
|
317 |
|
*/ |
318 |
|
$segments = apply_filters( 'network_by_path_segments_count', $segments, $domain, $path ); |
319 |
|
|
320 |
|
if ( ( null !== $segments ) && count( $path_segments ) > $segments ) { |
321 |
|
$path_segments = array_slice( $path_segments, 0, $segments ); |
322 |
|
} |
323 |
|
|
324 |
|
while ( count( $path_segments ) ) { |
325 |
|
$paths[] = '/' . implode( '/', $path_segments ) . '/'; |
wp-includes/ms-load.php 1 location
|
@@ 183-185 (lines=3) @@
|
180 |
|
*/ |
181 |
|
$segments = apply_filters( 'site_by_path_segments_count', $segments, $domain, $path ); |
182 |
|
|
183 |
|
if ( null !== $segments && count( $path_segments ) > $segments ) { |
184 |
|
$path_segments = array_slice( $path_segments, 0, $segments ); |
185 |
|
} |
186 |
|
|
187 |
|
$paths = array(); |
188 |
|
|