From 396868887705cd459853e5b2e7736b7c2cafb8c4 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 9 Mar 2016 07:41:34 +0000 Subject: [PATCH] Docs: Update param/return types for `WP_Site` in `ms-blogs.php` * `get_blog_details()` now returns a `WP_Site` object. * `clean_blog_cache()` is now called with a `WP_Site` object. See #32450. git-svn-id: https://develop.svn.wordpress.org/trunk@36894 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-blogs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index f4769693cc..9108d59e38 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -115,7 +115,7 @@ function get_id_from_blogname( $slug ) { * If not specified the current blog ID is used. * @param bool $get_all Whether to retrieve all details or only the details in the blogs table. * Default is true. - * @return object|false Blog details on success. False on failure. + * @return WP_Site|false Blog details on success. False on failure. */ function get_blog_details( $fields = null, $get_all = true ) { global $wpdb; @@ -440,7 +440,7 @@ function update_blog_details( $blog_id, $details = array() ) { * * @since 3.5.0 * - * @param stdClass $blog The blog details as returned from get_blog_details() + * @param WP_Site $blog The blog details as returned from get_blog_details() */ function clean_blog_cache( $blog ) { $blog_id = $blog->blog_id;