Title: Multisite Error
Last modified: November 7, 2017

---

# Multisite Error

 *  [Bloxxor](https://wordpress.org/support/users/fsmoffice/)
 * (@fsmoffice)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multisite-error-17/)
 * Hey there,
 * since WordPress 4.6.0 the function wp_get_sites() is deprecated and replaced 
   by get_sites().
 * [https://developer.wordpress.org/reference/functions/wp_get_sites/](https://developer.wordpress.org/reference/functions/wp_get_sites/)
 * get_sites() returns no longer an array, it returns an Object instead.
 * Deprecated code starts in oauth-server.php on lines 184 and 209:
 * Change `$mu_blogs = wp_get_sites();` to `$mu_blogs = get_sites();`
 * and `switch_to_blog( $mu_blog['blog_id'] );` to `switch_to_blog( $mu_blog->blog_id);`
 * Hope that helps somebody and the codes gets updated by the devs 🙂
 * Kind regards,
    Florian

The topic ‘Multisite Error’ is closed to new replies.

 * ![](https://ps.w.org/rest-api-oauth1/assets/icon-256x256.png?rev=3004388)
 * [WP REST API - OAuth 1.0a Server](https://wordpress.org/plugins/rest-api-oauth1/)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api-oauth1/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api-oauth1/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api-oauth1/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api-oauth1/reviews/)

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 0 replies
 * 1 participant
 * Last reply from: [Bloxxor](https://wordpress.org/support/users/fsmoffice/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/multisite-error-17/)
 * Status: not resolved