Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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