Hello again!
I am actually pulling that entire chunk of code from my main site. The restore_current_blog function is at the very bottom of the full piece of code.
I’m essentially creating a global header across my multisite network from the main site.