mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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
This commit is contained in:
parent
65b2be5b8f
commit
3968688877
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user