Code Duplication    Length = 8-12 lines in 2 locations

src/wp-admin/edit-comments.php 2 locations

@@ 139-150 (lines=12) @@
136
if ( $post_id ) {
137
	$comments_count = wp_count_comments( $post_id );
138
	$draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' );
139
	if ( $comments_count->moderated > 0 ) {
140
		/* translators: 1: comments count 2: post title */
141
		$title = sprintf( __( 'Comments (%1$s) on “%2$s”' ),
142
			number_format_i18n( $comments_count->moderated ),
143
			$draft_or_post_title
144
		);
145
	} else {
146
		/* translators: %s: post title */
147
		$title = sprintf( __( 'Comments on “%s”' ),
148
			$draft_or_post_title
149
		);
150
	}
151
} else {
152
	$comments_count = wp_count_comments();
153
	if ( $comments_count->moderated > 0 ) {
@@ 153-160 (lines=8) @@
150
	}
151
} else {
152
	$comments_count = wp_count_comments();
153
	if ( $comments_count->moderated > 0 ) {
154
		/* translators: %s: comments count */
155
		$title = sprintf( __( 'Comments (%s)' ),
156
			number_format_i18n( $comments_count->moderated )
157
		);
158
	} else {
159
		$title = __( 'Comments' );
160
	}
161
}
162
163
add_screen_option( 'per_page' );