Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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