switch_to_network changes original objects when switching
Created by: rmccue
switch_to_network
(or more accurately, restore_current_network
) messes up the network objects returned from get_networks
, as objects are passed by reference, and these are stored in the global $sites