Code Duplication    Length = 10-10 lines in 2 locations

_inc/lib/functions.wp-notify.php 2 locations

@@ 275-284 (lines=10) @@
272
		$comment_content = wp_specialchars_decode( $comment->comment_content );
273
274
		switch ( $comment->comment_type ) {
275
			case 'trackback':
276
				/* translators: 1: Post title */
277
				$notify_message  = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
278
				$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
279
				/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
280
				$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
281
				/* translators: 1: Trackback/pingback/comment author URL */
282
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
283
				$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
284
				break;
285
			case 'pingback':
286
				/* translators: 1: Post title */
287
				$notify_message  = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
@@ 285-294 (lines=10) @@
282
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
283
				$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
284
				break;
285
			case 'pingback':
286
				/* translators: 1: Post title */
287
				$notify_message  = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
288
				$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
289
				/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
290
				$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
291
				/* translators: 1: Trackback/pingback/comment author URL */
292
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
293
				$notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
294
				break;
295
			default: // Comments.
296
				/* translators: 1: Post title */
297
				$notify_message  = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";