Closed diogogomeswww closed 8 years ago
Hmm get_sites is only in 4.6, this plugin supports 4.4 as well.
Not sure we should so something like this:
$ms_sites = function_exists( 'get_sites' ) ? get_sites() : wp_get_sites();
Then
$blog_id = isset( $ms_site['blog_id'] ) ? $ms_site['blog_id'] : $ms_site->blog_id;
@lesterchan yes, of course, forgot about that. Changed it using your proposal, hope that it helps
Cheers
@lesterchan small change: Changed deprecated function wp_get_sites to get_sites