Code Duplication    Length = 6-6 lines in 2 locations

modules/theme-tools/content-options/featured-images-fallback.php 2 locations

@@ 22-27 (lines=6) @@
19
		return trim( $html );
20
	}
21
22
	if ( jetpack_featured_images_should_load() ) {
23
		if ( 
24
			( true === $opts['archive'] && ( is_home() || is_archive() || is_search() ) && ! $opts['archive-option'] )
25
			|| ( true === $opts['post'] && is_single() && ! $opts['post-option'] )
26
			|| ! $opts['fallback-option']
27
		) {
28
			return trim( $html );
29
		}
30
	}
@@ 89-94 (lines=6) @@
86
		return esc_url( $image_src );
87
	}
88
89
	if ( jetpack_featured_images_should_load() ) {
90
		if ( ( true === $opts['archive'] && ( is_home() || is_archive() || is_search() ) && ! $opts['archive-option'] )
91
			|| ( true === $opts['post'] && is_single() && ! $opts['post-option'] ) ) {
92
				return esc_url( $image_src );
93
		}
94
	}
95
96
	if ( class_exists( 'Jetpack_PostImages' ) ) {
97
		global $_wp_additional_image_sizes;