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.

Built from https://develop.svn.wordpress.org/trunk@36894


git-svn-id: http://core.svn.wordpress.org/trunk@36861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-03-09 07:42:26 +00:00
parent 80dd53519d
commit ba65ad94f2
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ function get_id_from_blogname( $slug ) {
* If not specified the current blog ID is used. * 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. * @param bool $get_all Whether to retrieve all details or only the details in the blogs table.
* Default is true. * 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 ) { function get_blog_details( $fields = null, $get_all = true ) {
global $wpdb; global $wpdb;
@ -440,7 +440,7 @@ function update_blog_details( $blog_id, $details = array() ) {
* *
* @since 3.5.0 * @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 ) { function clean_blog_cache( $blog ) {
$blog_id = $blog->blog_id; $blog_id = $blog->blog_id;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-beta2-36893'; $wp_version = '4.5-beta2-36894';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.