From aeb0957aea54d4792caaed713345d2722040d958 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 3 Mar 2014 18:55:08 +0000 Subject: [PATCH] Doc fixes for wp_get_network(). props TobiasBg. see #27003. git-svn-id: https://develop.svn.wordpress.org/trunk@27381 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-load.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/ms-load.php b/src/wp-includes/ms-load.php index efe5376e34..865e39f62d 100644 --- a/src/wp-includes/ms-load.php +++ b/src/wp-includes/ms-load.php @@ -280,8 +280,8 @@ function get_network_by_path( $domain, $path, $segments = null ) { * * @since 3.9.0 * - * @param int $network_id The network's DB row or ID. - * @return mixed Object containing network information if found, false if not. + * @param object|int $network The network's DB row or ID. + * @return object|bool Object containing network information if found, false if not. */ function wp_get_network( $network ) { global $wpdb; @@ -315,14 +315,13 @@ function wpmu_current_site() { function get_site_by_path( $domain, $path, $segments = null ) { global $wpdb; - $path_segments = array_filter( explode( '/', trim( $path, "/" ) ) ); + $path_segments = array_filter( explode( '/', trim( $path, '/' ) ) ); /** * Filter the number of path segments to consider when searching for a site. * * @since 3.9.0 * - * @param mixed $segments The number of path segments to consider. WordPress by default looks at * one path segment following the network path. The function default of * null only makes sense when you know the requested path should match a site. @@ -331,7 +330,7 @@ function get_site_by_path( $domain, $path, $segments = null ) { */ $segments = apply_filters( 'site_by_path_segments_count', $segments, $domain, $path ); - if ( null !== $segments && count($path_segments ) > $segments ) { + if ( null !== $segments && count( $path_segments ) > $segments ) { $path_segments = array_slice( $path_segments, 0, $segments ); }