Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 300-309 (lines=10) @@
297
	 * Post Subscriptions Toggle
298
	 *
299
	 */
300
	function subscription_post_subscribe_setting() {
301
302
		$stb_enabled = get_option( 'stb_enabled', 1 ); ?>
303
304
		<p class="description">
305
			<input type="checkbox" name="stb_enabled" id="jetpack-post-subscribe" value="1" <?php checked( $stb_enabled, 1 ); ?> />
306
			<?php _e( "Show a <em>'follow blog'</em> option in the comment form", 'jetpack' ); ?>
307
		</p>
308
	<?php
309
	}
310
311
	/**
312
	 * Comments Subscriptions Toggle
@@ 315-325 (lines=11) @@
312
	 * Comments Subscriptions Toggle
313
	 *
314
	 */
315
	function subscription_comment_subscribe_setting() {
316
317
		$stc_enabled = get_option( 'stc_enabled', 1 ); ?>
318
319
		<p class="description">
320
			<input type="checkbox" name="stc_enabled" id="jetpack-comment-subscribe" value="1" <?php checked( $stc_enabled, 1 ); ?> />
321
			<?php _e( "Show a <em>'follow comments'</em> option in the comment form", 'jetpack' ); ?>
322
		</p>
323
324
	<?php
325
	}
326
327
	function validate_settings( $settings ) {
328
		global $allowedposttags;