Example #1
0
    static function remember() {
      global $wp_query, $blog_id, $wf;
      
      self::$active_blog = $blog_id;
      
      if (isset($wp_query) && isset($wp_query->post)) {
        $id = $wp_query->post->ID;
        
        // allows load_template to auto-globalize $wf
        $wp_query->query_vars["wf"] = $wf;


        if (is_null($id)) {
          if (isset($_GET["post"])) {
            self::$the_id = (int) $_GET["post"];
          }
        } else {
          self::$the_id = $id;
        }
      }
    
    }