Issue: Undefined variable $site_id
Docs: https://developer.wordpress.org/reference/functions/get_sites/
Cause: get_sites returns an array of site objects, site_id not being defined causes issues when users login to sites that they have not logged into yet.
Issue: Undefined variable $site_id Docs: https://developer.wordpress.org/reference/functions/get_sites/ Cause: get_sites returns an array of site objects, site_id not being defined causes issues when users login to sites that they have not logged into yet.