From 9decae327d04ada1dafe90e9cb32cdad9aa5f043 Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Tue, 14 Jun 2016 18:13:03 +0000 Subject: [PATCH] Docs: Update the documentation for `get_site()` and the `get_site` filter following the removal of the `$output` parameter in [37652]. Props flixos90. See #35791. git-svn-id: https://develop.svn.wordpress.org/trunk@37699 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-blogs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index 0516bfbed4..f0dcb9477d 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -479,8 +479,8 @@ function clean_blog_cache( $blog ) { * * @global WP_Site $current_blog The current site. * - * @param WP_Site|int $site Site to retrieve. - * @return WP_Site|array|null Depends on $output value. + * @param WP_Site|int|null $site Optional. Site to retrieve. Default is the current site. + * @return WP_Site|null The site object or null if not found. */ function get_site( &$site = null ) { global $current_blog; @@ -505,7 +505,7 @@ function get_site( &$site = null ) { * * @since 4.6.0 * - * @param mixed $_site Site data. + * @param WP_Site $_site Site data. */ $_site = apply_filters( 'get_site', $_site );