function pugpig_see_the_future($query_obj = '')
{
    global $wp_post_statuses;
    //echo 'FUNCTION RUNNING';
    // Make future posts and manifests visible to app
    if (pugpig_is_pugpig_url() || pugpig_is_pugpig_manifest() || pugpig_is_pugpig_package_xml() || pugpig_is_pugpig_edition_atom_xml()) {
        $wp_post_statuses['future']->public = true;
    }
    if (pugpig_is_pugpig_package_xml() || pugpig_is_pugpig_edition_atom_xml()) {
        // Need to see drafts for preview
        $wp_post_statuses['draft']->public = true;
        $wp_post_statuses['pending']->public = true;
    }
}
function pugpig_ob_end()
{
    if (pugpig_is_pugpig_url()) {
        ob_end_flush();
    }
}