function update_blog_details( $blog_id,
$details = array
() ) { global $wpdb;
if ( empty( $details ) ) { return false;
} if ( is_object( $details ) ) { $details =
get_object_vars( $details );
} $site =
wp_update_site( $blog_id,
$details );
if ( is_wp_error( $site ) ) { return false;
} return true;
}/**
* Cleans the site details cache for a site.
*
* @since 4.7.4
*
* @param int $site_id Optional. Site ID. Default is the current site ID.
*/