Code Duplication    Length = 8-8 lines in 2 locations

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

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