Code Duplication    Length = 8-8 lines in 2 locations

wp-includes/post-template.php 2 locations

@@ 473-480 (lines=8) @@
470
	$classes[] = 'status-' . $post->post_status;
471
472
	// Post Format
473
	if ( post_type_supports( $post->post_type, 'post-formats' ) ) {
474
		$post_format = get_post_format( $post->ID );
475
476
		if ( $post_format && !is_wp_error($post_format) )
477
			$classes[] = 'format-' . sanitize_html_class( $post_format );
478
		else
479
			$classes[] = 'format-standard';
480
	}
481
482
	$post_password_required = post_password_required( $post->ID );
483
@@ 607-614 (lines=8) @@
604
			$classes[] = 'postid-' . $post_id;
605
606
			// Post Format
607
			if ( post_type_supports( $post->post_type, 'post-formats' ) ) {
608
				$post_format = get_post_format( $post->ID );
609
610
				if ( $post_format && !is_wp_error($post_format) )
611
					$classes[] = 'single-format-' . sanitize_html_class( $post_format );
612
				else
613
					$classes[] = 'single-format-standard';
614
			}
615
		}
616
617
		if ( is_attachment() ) {