Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 352-361 (lines=10) @@
349
	 * Post Subscriptions Toggle
350
	 *
351
	 */
352
	function subscription_post_subscribe_setting() {
353
354
		$stb_enabled = get_option( 'stb_enabled', 1 ); ?>
355
356
		<p class="description">
357
			<input type="checkbox" name="stb_enabled" id="jetpack-post-subscribe" value="1" <?php checked( $stb_enabled, 1 ); ?> />
358
			<?php _e( "Show a <em>'follow blog'</em> option in the comment form", 'jetpack' ); ?>
359
		</p>
360
	<?php
361
	}
362
363
	/**
364
	 * Comments Subscriptions Toggle
@@ 367-377 (lines=11) @@
364
	 * Comments Subscriptions Toggle
365
	 *
366
	 */
367
	function subscription_comment_subscribe_setting() {
368
369
		$stc_enabled = get_option( 'stc_enabled', 1 ); ?>
370
371
		<p class="description">
372
			<input type="checkbox" name="stc_enabled" id="jetpack-comment-subscribe" value="1" <?php checked( $stc_enabled, 1 ); ?> />
373
			<?php _e( "Show a <em>'follow comments'</em> option in the comment form", 'jetpack' ); ?>
374
		</p>
375
376
	<?php
377
	}
378
379
	function validate_settings( $settings ) {
380
		global $allowedposttags;