go_to() public method

Modify WordPress's query internals as if a given URL has been requested.
public go_to ( string $url )
$url string The URL for the request.
 public function go_to($url)
 {
     global $locale;
     $bbl_locale = Babble::get('locale');
     $locale = null;
     $bbl_locale->content_lang = null;
     $bbl_locale->interface_lang = null;
     // ugh
     remove_filter('home_url', array($bbl_locale, 'home_url'), null, 2);
     return parent::go_to($url);
 }
 function go_to($url)
 {
     $GLOBALS['bp']->loggedin_user = NULL;
     $GLOBALS['bp']->pages = bp_core_get_directory_pages();
     parent::go_to($url);
     do_action('bp_init');
 }