function ec3_filter_query_vars($wpvarstoreset) { if (isset($_GET['ec3_xml'])) { ec3_filter_query_vars_xml(); } if (isset($_GET['ec3_ical']) || isset($_GET['ec3_vcal'])) { ec3_filter_query_vars_ical(); } if (isset($_GET['ec3_dump'])) { ec3_filter_query_vars_dump(); } // else... $wpvarstoreset[] = 'ec3_today'; $wpvarstoreset[] = 'ec3_days'; $wpvarstoreset[] = 'ec3_from'; // ?? Deprecated $wpvarstoreset[] = 'ec3_after'; $wpvarstoreset[] = 'ec3_before'; $wpvarstoreset[] = 'ec3_listing'; // Turn-off broken canonical redirection when both m= & cat= are set. if (isset($_GET['m']) && isset($_GET['cat'])) { remove_action('template_redirect', 'redirect_canonical'); } return $wpvarstoreset; }
function ec3_filter_query_vars($wpvarstoreset) { if (isset($_GET['ec3_xml'])) { ec3_filter_query_vars_xml(); } if (isset($_GET['ec3_ical']) || isset($_GET['ec3_vcal'])) { ec3_filter_query_vars_ical(); } if (isset($_GET['ec3_dump'])) { ec3_filter_query_vars_dump(); } // else... $wpvarstoreset[] = 'ec3_today'; $wpvarstoreset[] = 'ec3_days'; $wpvarstoreset[] = 'ec3_from'; // ?? Deprecated $wpvarstoreset[] = 'ec3_after'; $wpvarstoreset[] = 'ec3_before'; $wpvarstoreset[] = 'ec3_listing'; return $wpvarstoreset; }
function ec3_filter_query_vars($wpvarstoreset) { global $ec3; // Backwards compatibility with URLs from old versions of EC. if (isset($_GET['ec3_ical']) || isset($_GET['ec3_vcal'])) { ec3_do_feed_ical(); exit(0); } if (isset($_GET['ec3_dump'])) { ec3_filter_query_vars_dump(); } // else... $wpvarstoreset[] = 'ec3_today'; $wpvarstoreset[] = 'ec3_days'; $wpvarstoreset[] = 'ec3_from'; // ?? Deprecated $wpvarstoreset[] = 'ec3_after'; $wpvarstoreset[] = 'ec3_before'; $wpvarstoreset[] = 'ec3_listing'; $wpvarstoreset[] = 'ec3_id_lieux'; // Turn-off broken canonical redirection when both m= & cat= are set. if (isset($_GET['m']) && isset($_GET['cat'])) { remove_action('template_redirect', 'redirect_canonical'); } return $wpvarstoreset; }