Code Duplication    Length = 3-3 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 178-180 (lines=3) @@
175
		$excluded_categories = apply_filters( 'jetpack_subscriptions_exclude_these_categories', array() );
176
177
		// Never email posts from these categories
178
		if ( ! empty( $excluded_categories ) && in_category( $excluded_categories, $post->ID ) ) {
179
			update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 );
180
		}
181
182
		/**
183
		 * ONLY send subscription emails for these categories
@@ 196-198 (lines=3) @@
193
		$only_these_categories = apply_filters( 'jetpack_subscriptions_exclude_all_categories_except', array() );
194
195
		// Only emails posts from these categories
196
		if ( ! empty( $only_these_categories ) && ! in_category( $only_these_categories, $post->ID ) ) {
197
			update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 );
198
		}
199
200
		// Email the post, depending on the checkbox option
201
		if ( ! empty( $_POST['disable_subscribe_nonce'] ) && wp_verify_nonce( $_POST['disable_subscribe_nonce'], 'disable_subscribe' ) ) {