Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 241-250 (lines=10) @@
238
		$comment_content = wp_specialchars_decode( $comment->comment_content );
239
240
		switch ( $comment->comment_type ) {
241
			case 'trackback':
242
				/* translators: 1: Post title */
243
				$notify_message  = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
244
				$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
245
				/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
246
				$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
247
				/* translators: 1: Trackback/pingback/comment author URL */
248
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
249
				$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
250
				break;
251
			case 'pingback':
252
				/* translators: 1: Post title */
253
				$notify_message  = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
@@ 251-260 (lines=10) @@
248
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
249
				$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
250
				break;
251
			case 'pingback':
252
				/* translators: 1: Post title */
253
				$notify_message  = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
254
				$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
255
				/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
256
				$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
257
				/* translators: 1: Trackback/pingback/comment author URL */
258
				$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
259
				$notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
260
				break;
261
			default: // Comments
262
				/* translators: 1: Post title */
263
				$notify_message  = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";