Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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