Code Duplication    Length = 3-3 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 197-199 (lines=3) @@
194
		$excluded_categories = apply_filters( 'jetpack_subscriptions_exclude_these_categories', array() );
195
196
		// Never email posts from these categories
197
		if ( ! empty( $excluded_categories ) && in_category( $excluded_categories, $post->ID ) ) {
198
			update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 );
199
		}
200
201
		/**
202
		 * ONLY send subscription emails for these categories
@@ 215-217 (lines=3) @@
212
		$only_these_categories = apply_filters( 'jetpack_subscriptions_exclude_all_categories_except', array() );
213
214
		// Only emails posts from these categories
215
		if ( ! empty( $only_these_categories ) && ! in_category( $only_these_categories, $post->ID ) ) {
216
			update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 );
217
		}
218
219
		// Email the post, depending on the checkbox option
220
		if ( ! empty( $_POST['disable_subscribe_nonce'] ) && wp_verify_nonce( $_POST['disable_subscribe_nonce'], 'disable_subscribe' ) ) {