Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 190-197 (lines=8) @@
187
		return ! in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) );
188
	}
189
190
	function remove_embed() {
191
		global $wp_embed;
192
		remove_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
193
		// remove the embed shortcode since we would do the part later.
194
		remove_shortcode( 'embed' );
195
		// Attempts to embed all URLs in a post
196
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
197
	}
198
199
	function add_embed() {
200
		global $wp_embed;
@@ 199-206 (lines=8) @@
196
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
197
	}
198
199
	function add_embed() {
200
		global $wp_embed;
201
		add_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
202
		// Shortcode placeholder for strip_shortcodes()
203
		add_shortcode( 'embed', '__return_false' );
204
		// Attempts to embed all URLs in a post
205
		add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
206
	}
207
208
	// Expands wp_insert_post to include filtered content
209
	function filter_post_content_and_add_links( $post_object ) {