Code Duplication    Length = 8-8 lines in 2 locations

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

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