Code Duplication    Length = 7-7 lines in 2 locations

modules/theme-tools/content-options/blog-display.php 2 locations

@@ 62-68 (lines=7) @@
59
 * Display Excerpt instead of Content.
60
 */
61
function jetpack_the_content_to_the_excerpt( $content ) {
62
	if ( is_home() || is_archive() ) {
63
		if ( post_password_required() ) {
64
			$content = sprintf( '<p>%s</p>', esc_html__( 'There is no excerpt because this is a protected post.' ) );
65
		} else {
66
			$content = jetpack_blog_display_custom_excerpt( $content );
67
		}
68
	}
69
	return $content;
70
}
71
@@ 93-99 (lines=7) @@
90
 */
91
function jetpack_the_content_customizer( $content ) {
92
	$class = jetpack_the_content_customizer_class();
93
	if ( is_home() || is_archive() ) {
94
		if ( post_password_required() ) {
95
			$excerpt = sprintf( '<p>%s</p>', esc_html__( 'There is no excerpt because this is a protected post.' ) );
96
		} else {
97
			$excerpt = jetpack_blog_display_custom_excerpt( $content );
98
		}
99
	}
100
	if ( empty( $excerpt ) ) {
101
		return $content;
102
	} else {