Code Duplication    Length = 8-8 lines in 2 locations

wp-includes/feed-atom-comments.php 1 location

@@ 69-76 (lines=8) @@
66
?>
67
	<entry>
68
		<title><?php
69
			if ( !is_singular() ) {
70
				$title = get_the_title($comment_post->ID);
71
				/** This filter is documented in wp-includes/feed.php */
72
				$title = apply_filters( 'the_title_rss', $title );
73
				printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
74
			} else {
75
				printf(ent2ncr(__('By: %s')), get_comment_author_rss());
76
			}
77
		?></title>
78
		<link rel="alternate" href="<?php comment_link(); ?>" type="<?php bloginfo_rss('html_type'); ?>" />
79

wp-includes/feed-rss2-comments.php 1 location

@@ 68-75 (lines=8) @@
65
	?>
66
	<item>
67
		<title><?php
68
			if ( !is_singular() ) {
69
				$title = get_the_title($comment_post->ID);
70
				/** This filter is documented in wp-includes/feed.php */
71
				$title = apply_filters( 'the_title_rss', $title );
72
				printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
73
			} else {
74
				printf(ent2ncr(__('By: %s')), get_comment_author_rss());
75
			}
76
		?></title>
77
		<link><?php comment_link() ?></link>
78
		<dc:creator><![CDATA[<?php echo get_comment_author_rss() ?>]]></dc:creator>