Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 233-240 (lines=8) @@
230
		return ! in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) );
231
	}
232
233
	function remove_embed() {
234
		global $wp_embed;
235
		remove_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
236
		// remove the embed shortcode since we would do the part later.
237
		remove_shortcode( 'embed' );
238
		// Attempts to embed all URLs in a post
239
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
240
	}
241
242
	function add_embed() {
243
		global $wp_embed;
@@ 242-249 (lines=8) @@
239
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
240
	}
241
242
	function add_embed() {
243
		global $wp_embed;
244
		add_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
245
		// Shortcode placeholder for strip_shortcodes()
246
		add_shortcode( 'embed', '__return_false' );
247
		// Attempts to embed all URLs in a post
248
		add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
249
	}
250
251
	// Expands wp_insert_post to include filtered content
252
	function filter_post_content_and_add_links( $post_object ) {