<?php

/**
 * RSS2 Feed Template for displaying RSS2 Comments feed.
 *
 * @package WordPress
 */
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
global $digressit_commentbrowser, $wp_rewrite, $matches, $wp_query, $wp;
/* FIXME: I can't find a way to get the user var from GET this is a temp hack */
$comments_from_user = get_comments_from_user($wp->query_vars['feed_parameter']);
$user_print_name = null;
if (is_numeric($commenter)) {
    $userdata = get_userdata($commenter);
    $user_print_name = urldecode($userdata->user_nicename);
} else {
    $user_print_name = urldecode($commenter);
}
//echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	<?php 
do_action('rss2_ns');
do_action('rss2_comments_ns');
?>
>
<channel>
Example #2
0
    }
    ?>
        </p>
        <!-- End Loop -->
        <?php 
}
?>
        
        
        <h2>Comments</h2>
        <p>
        <?php 
global $comments;
?>
        <?php 
$comments = get_comments_from_user($curauth->ID);
?>
        <?php 
if (count($comments)) {
    ?>
        <?php 
    foreach ($comments as $comment) {
        ?>
            <?php 
        wp_list_comments(array('type' => 'comment', 'callback' => get_digressit_comments_function()));
        ?>
            
        <?php 
    }
    ?>
        <?php