get_current_blog_id()
get_site()
The global `$current_blog` is not switched in `switch_to_blog()` and can not be used to properly retrieve current switched site information. See #37607. git-svn-id: https://develop.svn.wordpress.org/trunk@38217 602fd350-edb4-49c9-b593-d223f7449a82