restore_current_network can only restore once
Created by: rmccue
If you call switch_to_network
twice, the $old_network_details
variable is set twice. Rather than using the switch stack, restore_current_network
uses this, so it will be unable to ever switch back. :(