retesere20

Untitled

Sep 8th, 2016
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function toscho__Restore_Original_Blog(){
  2. if(!empty($GLOBALS['_wp_switched_stack'][0])){
  3. switch_to_blog( $GLOBALS['_wp_switched_stack'][0] );
  4. }
  5. $GLOBALS['_wp_switched_stack'] = array();
  6. $GLOBALS['switched'] = FALSE;
  7. }
RAW Paste Data