Code Duplication    Length = 8-8 lines in 2 locations

sync/class.jetpack-sync-module-posts.php 2 locations

@@ 124-131 (lines=8) @@
121
		return ! in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) );
122
	}
123
124
	function remove_embed() {
125
		global $wp_embed;
126
		remove_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
127
		// remove the embed shortcode since we would do the part later.
128
		remove_shortcode( 'embed' );
129
		// Attempts to embed all URLs in a post
130
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
131
	}
132
133
	function add_embed() {
134
		global $wp_embed;
@@ 133-140 (lines=8) @@
130
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
131
	}
132
133
	function add_embed() {
134
		global $wp_embed;
135
		add_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
136
		// Shortcode placeholder for strip_shortcodes()
137
		add_shortcode( 'embed', '__return_false' );
138
		// Attempts to embed all URLs in a post
139
		add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
140
	}
141
142
	// Expands wp_insert_post to include filtered content
143
	function filter_post_content_and_add_links( $post_object ) {