'index.php?feed=' . $wp_rewrite->preg_index(1) ); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } } if (!function_exists('yak_create_product_feed')) { /** * create a xml product feed (this is used for installations which need remote * products -- i.e. 2 yaks which share product info) */ function yak_create_product_feed() { global $post; header("Content-Type: text/xml"); $reqid = $_REQUEST['p']; echo " "; while (have_posts()) { the_post(); $url = yak_get_blogurl(); $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $action = yak_get_tag_value($content, 'action="', '"'); if ($action != null) { $new_action = yak_overlap($url, $action); $content = str_replace($action, $new_action, $content); } $content = str_replace('