Changeset 27381
- Timestamp:
- 03/03/2014 06:55:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-load.php
r27359 r27381 281 281 * @since 3.9.0 282 282 * 283 * @param int $network_idThe network's DB row or ID.284 * @return mixedObject containing network information if found, false if not.283 * @param object|int $network The network's DB row or ID. 284 * @return object|bool Object containing network information if found, false if not. 285 285 */ 286 286 function wp_get_network( $network ) { … … 316 316 global $wpdb; 317 317 318 $path_segments = array_filter( explode( '/', trim( $path, "/") ) );318 $path_segments = array_filter( explode( '/', trim( $path, '/' ) ) ); 319 319 320 320 /** … … 323 323 * @since 3.9.0 324 324 * 325 326 325 * @param mixed $segments The number of path segments to consider. WordPress by default looks at 327 326 * one path segment following the network path. The function default of … … 332 331 $segments = apply_filters( 'site_by_path_segments_count', $segments, $domain, $path ); 333 332 334 if ( null !== $segments && count( $path_segments ) > $segments ) {333 if ( null !== $segments && count( $path_segments ) > $segments ) { 335 334 $path_segments = array_slice( $path_segments, 0, $segments ); 336 335 }
Note: See TracChangeset
for help on using the changeset viewer.