Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 221-228 (lines=8) @@
218
		return ! in_array( $post->post_type, Jetpack_Sync_Settings::get_setting( 'post_types_blacklist' ) );
219
	}
220
221
	function remove_embed() {
222
		global $wp_embed;
223
		remove_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
224
		// remove the embed shortcode since we would do the part later.
225
		remove_shortcode( 'embed' );
226
		// Attempts to embed all URLs in a post
227
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
228
	}
229
230
	function add_embed() {
231
		global $wp_embed;
@@ 230-237 (lines=8) @@
227
		remove_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
228
	}
229
230
	function add_embed() {
231
		global $wp_embed;
232
		add_filter( 'the_content', array( $wp_embed, 'run_shortcode' ), 8 );
233
		// Shortcode placeholder for strip_shortcodes()
234
		add_shortcode( 'embed', '__return_false' );
235
		// Attempts to embed all URLs in a post
236
		add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 8 );
237
	}
238
239
	// Expands wp_insert_post to include filtered content
240
	function filter_post_content_and_add_links( $post_object ) {